Can't delete virtual device from Eclipse, android

前端 未结 6 1183
面向向阳花
面向向阳花 2020-12-12 11:13

I have multiple virtual devices, some of them can\'t be deleted.

Error message is

The android virtual device XXX is currently running in an e

6条回答
  •  -上瘾入骨i
    2020-12-12 11:58

    I've been looking for the java code and this error really mean you have an AVD running... Have you tried kill'em all with top or htop (which is way better).

        // 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;
    

提交回复
热议问题