Mobile development

Apparently a small bug has sneaked in to the Android SDK Tools for revision 12. The emulator fails to start and the reason for this is that a path can’t be read because of a space.

When I have created an Android project with an Activity and GUI that I want to launch in the emulator I get this error message:

invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.

The reason for this is that the path to the SDK Location can’t be read due to a space character. My current Android SDK Location is C:\Program Files\Android\android-sdk and the space between Program and Files is the problem.

Changing this to C:\PROGRA~1\Android\android-sdk will solve the problem (or PROGRA~2 or something else, it’s the 8-dot-3 name we want here).

Now try again and it should work!

Share and Enjoy:

  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • email
  • Google Buzz
  • RSS
  • Slashdot
  • Technorati
  • Add to favorites
  • DZone
  • LinkedIn
  • MySpace
  • Tumblr

4 comments

Java SE Development Kit not found

by Niklas Waller on July 21, 2011

in Mobile development

I am about to create my first Android app, which is coming soon I hope.
The take-off distance was a bit long though since I didn’t even get to start before the first error came up.

First I need Eclipse, which I have.
Then I need the Android SDK and finally I need the ADT Plugin for Eclipse.
However, in order to install Android SDK I need a JDK, a JRE is simply not enough.
So I installed the JDK and started the installation of Android SDK and was met by this error.

I tried to re-install and to install different version of the JDK and even restart the computer but nothing helped. Then I found the solution – which is fairly simple. Press ‘Back’ and then ‘Next’ again and you’ll be able to pass the error. Duh!

Share and Enjoy:

  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • email
  • Google Buzz
  • RSS
  • Slashdot
  • Technorati
  • Add to favorites
  • DZone
  • LinkedIn
  • MySpace
  • Tumblr

2 comments