我是android新手。我正在尝试开发所有教程中给出的android helloworld应用程序。
使用配置:Android 3.1进行配置。 当我尝试在eclipse中运行时,我得到错误:
[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
答案 0 :(得分:1)
这是SDK工具r12引入的错误。你可以做以下两件事之一:
adb kill-server
然后adb start-server
。如果尚未设置PATH变量,则在命令提示符下导航到(sdk的路径)\ android-sdk-windows \ platform-tools,然后从那里运行这两个命令。答案 1 :(得分:0)
您的android sdk可能配置不正确。 您是否尝试从命令行运行模拟器? [http://www.ceveni.com/2009/12/run-android-emulator-from-command-line.html] [1]