Eclipse Android 虚拟设备管理器无法启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13669458/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Android Virtual Device Manager doesn't launch
提问by l46kok
I am using Eclipse 4.2.1 (Juno).
我正在使用 Eclipse 4.2.1 (Juno)。
My Android Virtual Device Manager does not launch. I press on the button and literally nothing happens (no error message).
我的 Android 虚拟设备管理器无法启动。我按下按钮,实际上什么也没发生(没有错误消息)。
I've tried reinstalling the Android SDK, ADT and Eclipse but nothing helps to fix this issue.
我试过重新安装 Android SDK、ADT 和 Eclipse,但没有任何帮助来解决这个问题。
Any ideas on how to fix this issue?
有关如何解决此问题的任何想法?
回答by LazyBoy
Had the same problem. After several reinstalls, restarts and what not, I finally figured it out:
open cmd, run android avd
from sdk\tools
folder. You'll probably get an exception that you can google, which is already better than no response at all...
This is what I got:
有同样的问题。经过几次重新安装,重新启动等等,我终于想通了:
打开cmd,android avd
从sdk\tools
文件夹运行。你可能会得到一个例外,你可以谷歌,这已经比没有回应要好......这就是我得到的:
java.lang.NullPointerException
at com.android.sdklib.internal.avd.AvdInfo.getDeviceName(AvdInfo.java:158)
What did the trick for me was deleting the folder C:\Users\<User>\.android\avd
.
对我来说有什么诀窍是删除文件夹C:\Users\<User>\.android\avd
。
回答by Neal
I ran into the same problem when relocating my entire developement directory. Deleting the folder and relaunching Eclipse resolved it.
在重新定位整个开发目录时,我遇到了同样的问题。删除文件夹并重新启动 Eclipse 解决了它。
回答by FraZer
In this case reinstalling will help get the android development package from developers site.....
在这种情况下,重新安装将有助于从开发人员站点获取 android 开发包.....
and you can try by running in a new User Account in your PC some times it workss!!! all the best!
您可以尝试在您的 PC 中运行一个新的用户帐户,有时它会起作用!!!祝一切顺利!
- Close Eclipse
- Kill adb through command line with command adb kill-server
- Now start task manager and kill adb process also from there if running from the process tab
- Now start your adb again from command line with adb start-server -Now start your Eclipse again and run your application
- 关闭日食
- 通过命令行使用命令 adb kill-server 杀死 adb
- 如果从进程选项卡运行,现在启动任务管理器并从那里终止 adb 进程
- 现在使用 adb start-server 从命令行再次启动您的 adb - 现在再次启动您的 Eclipse 并运行您的应用程序
Try!!
尝试!!
回答by macieksk
In my case this was a problem with old /tmp/android-username/emulator-* files. I found it out by running manually my predefined arm AVD named "Test"
就我而言,这是旧的/tmp/android-username/emulator-* 文件的问题。我通过手动运行名为“Test”的预定义臂 AVD 发现了它
$ cd adt-bundle-linux-x86_64-20130522/sdk/tools
$ ./emulator64-arm -avd Test
NAND: could not write file /tmp/android-username/emulator-gKbQ19, File exists
Removing old emulator files from /tmp/android-usernameresolved the problem.
从/tmp/android-username 中删除旧的模拟器文件解决了这个问题。
rm /tmp/android-username/emulator-*