Not able to launch android emulator

拈花ヽ惹草 提交于 2019-12-17 14:14:15

问题


When I run my hello world application, the android emulator fails to launch.Even when i am creating a new emulator it fails to launch giving me the following error.

[2011-08-09 17:03:10 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-08-09 17:03:10 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-08-09 17:03:10 - Emulator] please use -help for more information

回答1:


The problem is, that you have specified your SDK in a file what has space, in its name For example: Android SDK You need to change it to something what hasn't got space in its name.

Hope it helps.

Or if you specified it in the Program Files use it: Progra~1 instead of Program Files.




回答2:


You are not specifying what AVD to launch. Please read the SDK docs in full, they will show you how to do this.

Tip: Launch the "android.exe" (I think, I use Linux where it's simply "android") app instead, create an AVD and launch it, all from the graphical interface.




回答3:


First of all you need to check are you in correct folder?

$...local\Android\sdk\tools\emulator -list-avds

If so it will show you list of emulators that you have in your Android studio you are on right track Last part for launching an emulator

local\Android\sdk\tools\emulator -avd Nexus_5X(name of your emulator you want to open) 



回答4:


On windows don't install the Android SDK to a path with spaces in it like C:\Program Files\AndroidSDK. Instead install it to C:\AndroidSDK\ or something like that.



来源:https://stackoverflow.com/questions/6995739/not-able-to-launch-android-emulator

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