Emulator Load error - Android

青春壹個敷衍的年華 提交于 2019-12-13 05:49:20

问题


I am new to android. I am trying to develop android helloworld application as given in all tutorials.

Using Configuration: Android 3.1 for configuration. When i try to run in eclipse i get error:

[2011-07-10 13:39:19 - HelloWorld] -----------------------------
[2011-07-10 13:39:19 - HelloWorld] Android Launch!
[2011-07-10 13:39:19 - HelloWorld] adb is running normally.
[2011-07-10 13:39:19 - HelloWorld] Performing com.hello.HelloWorldActivity activity launch
[2011-07-10 13:39:19 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-07-10 13:39:19 - HelloWorld] Launching a new emulator with Virtual Device 'my_avd'
[2011-07-10 13:39:19 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-07-10 13:39:19 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-07-10 13:39:19 - Emulator] please use -help for more information

回答1:


This is a bug that was introduced with SDK tools r12. You can do either of two things:

  • Install your SDK into your C:\ root directory instead of C:\Program Files
  • In Eclipse, go to Window -> Preferences -> Android. If you placed your SDK in C:\Program Files, change that to C:\PROGRA~1. If you placed it in C:\Program Files (x86), change it to C:\PROGRA~2. Eclipse is going to complain, so in your command line terminal, run adb kill-server and then adb start-server. If you haven't set up your PATH variable yet, then, in the command prompt, navigate to (path to sdk)\android-sdk-windows\platform-tools, and run those two commands from there.



回答2:


Your android sdk might not be configured correctly. Did you try to run the emulator from command line? [http://www.ceveni.com/2009/12/run-android-emulator-from-command-line.html][1]



来源:https://stackoverflow.com/questions/6639994/emulator-load-error-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!