Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble getting Android emulator to run in eclipse

Tags:

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.

like image 408
Sharonix Avatar asked Mar 18 '10 21:03

Sharonix


People also ask

What do I do if my Android emulator is not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Why is my AVD not working?

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. 3) Restart Android Studio and then try to start the AVD again.


1 Answers

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.

like image 131
Dmitriy Ganzin Avatar answered Oct 14 '22 16:10

Dmitriy Ganzin