"invalid command-line parameter" error while trying to make a hello world example for Android
I just decided to start developing apps for Android and I encountered some problems. I get this error开发者_如何学C when I try to build a hello world example from http://developer.android.com/resources/tutorials/hello-world.html#top:
[2011-07-17 00:22:46 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe. [2011-07-17 00:22:46 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'. [2011-07-17 00:22:46 - Emulator] please use -help for more information
I have followed everything in that tutorial, how do I fix this?
There is a bug with paths. You have your SDK in C:\Program Files, but the sdk can't work with spaces in the path (this is why you only see "parameter: Files\Android\..."). Install it into a location without spaces, e.g. directly to C:\android-sdk. I think it's ok to cut & paste the complete folder into the new location and just change the path in the eclipse preferences.
精彩评论