我一直在寻找 Java 代码,这个错误真的意味着你有一个 AVD 运行..。
你有没有试过用 top 或 htop 杀死他们(这样更好)。
// check if the AVD is running
if (avdInfo.isRunning()) {
display.asyncExec(new Runnable() {
public void run() {
Shell shell = display.getActiveShell();
MessageDialog.openError(shell,
"Delete Android Virtual Device",
String.format(
"The Android Virtual Device '%1$s' is currently running in an emulator and cannot be deleted.",
avdInfo.getName()));
}
});
return;