Trouble getting Android emulator to run in eclipse

Sharonix picture Sharonix · Mar 18, 2010 · Viewed 45.1k times · Source

I'm trying to run the SDK Samples on the Emulator in Eclipse 3.5.

Most of the time the AVD Manager hangs when I try to create a new AVD. When I manage to create an AVD and try to start the emulator I get this:

emulator: ERROR: no search paths found in this AVD's configuration

weird, the AVD's config.ini file is malformed. Try re-creating it.

I'm running the latest version of the SDK on Win7 32 bit. Any ideas?

Update:

I think I found the source of the problem. I'm running a Hebrew version of WIN 7. My user name is in Hebrew. Apparently this causes a problem for Eclipse. Once I started to suspect that was the problem, I created a new user on the system called DEV and tried to run the emulator under that user. Went like butter.

Answer

Dmitriy Ganzin picture Dmitriy Ganzin · Apr 27, 2010

You can set the environment variable ANDROID_SDK_HOME. For example:

ANDROID_SDK_HOME=D:\Development\android-sdk\

It helped me. Add this variable to <eclipseFolder>\configuration\.settings\org.eclipse.ui.ide.prefs:

ANDROID_SDK_HOME=D\:\\Development\\android-sdk\\

Stop the process adb.exe and (re)start Eclipse.