Monday, September 19, 2011

Android emulator-arm.exe crashing in Windows XP

I have tried to install Android SDK (r12) to start playing with developing applications for the platform. For no reason, I picked Windows XP Sp3 as my development OS.

Customary to getting started with new programming language or platform is to create the equivalent "Hello World". The sample program was small and easy to digest but running it for the first time was not a good experience.

The default Android Virtual Device configuation as per the tutorial keeps crashing on Windows XP. This is the message that I am seeing:
emulator-arm.exe has encountered a problem and needs to close.
We are sorry for the inconvenience
Searching the blogosphere shows the following sites that standout:
The information from Stackoverflow did give a good hint as to what might be the issue. It seems like the Android SDK, specially the emulator, does not like spaces in the directories. With VirtualBox virtualization at my disposal, I started poking around with the installer.

To make the long trial and error short, below are the key changes to make Android development a little smoother.

Before installing the Android SDK (installer_r12-windows.exe), set the following system environment variable:
ANDROID_SDK_HOME = d:\home
Of course you have to change d:\home to your desired folder. Ensure that the folder exists, this is important before starting with the installation. By the way, this is the folder where the Android virtual device(s) will be created.

Now, install Android SDK. I would suggest to use c:\android\sdk for the destination folder.  If not, ensure that the path location does not include any spaces and that the individual folder length is less than or equal to eight characters.

With all this set, continue with the installation of Android software development environment and enjoy!!!

~ts

12 comments:

Anonymous said...

As I had the SDK already installed, I copied the .android-directory from the old location to the new one and set the ANDROID_SDK_HOME as you described. That also worked for me.

Techno Scavenger said...

Good to know that SDK need not be re-installed.

Thanks for the additional information.

Administrador said...

Thanks for information.

Administrador said...

Thanks for information.

Techno Scavenger said...

@Administrador
You are welcome... thanks for the comment.

....$Vignesh said...

i changed the path as well as the resolution to work

Techno Scavenger said...

Good to know that it is workig for you :). Thanks for dropping a note!

Anonymous said...

Thanks for post! You have to change the Andoid SDK path in Eclipse - Window/Preferences - SDK Location. I'm using Eclipse Helios.

Sr said...

Thanks a lot for the post, it works for me as well

Sr said...

Thanks a lot for the post

Anonymous said...

Thanks boss, you saved my day!

Techno Scavenger said...

I am glad to be of help... thanks for dropping a note.

Running QNX on emulated cortex-a15 using QEMU

Running QNX on emulated cortex-a15 using QEMU General information: - Host (for running QEMU) OS: Ubuntu 24.04.2 LTS - QEMU: QEMU emulator...