Hello Android application not working
Today I have started with setting up of Android Development Environment using Eclipse for java developers, Android SDK and ADT Plugin on Windows 7 开发者_JAVA百科exactly following the steps given on http://developer.android.com/resources/tutorials/hello-world.html but I'm stuck in between. I have written HelloAndroid application in same way as described on this link but when I'm running this code then it is not working. Following errors are shown in red:-
[2011-07-11 23:25:36 - Emulator] invalid command-line parameter: Files.
[2011-07-11 23:25:36 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-07-11 23:25:36 - Emulator] please use -help for more information
It's a new bug. You have to install your android sdk to a path that doesn't contain spaces. So c:\program files\android would fail, try c:\android.
Alternatively, you could first run your emulator by browsing to your androidsdk\tools folder, and open a command prompt there. Then use
emulator @foo
where foo is your avd name.
(You can also ofcourse, if you have one, deploy the application on your android phone, generally faster and easier to use)
精彩评论