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.
Another consideration I may have overlooked in others answers - I see you mentioned Eclipse 3.5 - consider using 3.5.2 (the current latest version)
May not matter, may have just been omitted by you, either way using the most up to date stuff never hurts.
You have to use Android tool from sdk\tools folder to move your AVD device to some Folder with no foreign characters in the path.
Just type
android move avd -n "nameofdevice" -p "newpath"
For example:
android move avd -n HTDDESIRE -p C:\HTCDESIRE
The solution (that worked for me) was to add the following missing entries in my avd's config.ini:
This solved it for me on IOS: I looked in the actual .ini file for the device (Nexus-7-inch-tablet.ini) which looked like:
and removed and extra return space in the file. Resaved it and worked. Ridiculous.
move
c:\Users\YourName\.android\avd\YourAVDName.avd
manually toc:\Android\YourAVDName.avd
then openc:\Users\YourName\.android\avd\YourAVDName.ini
and change path frompath=c:\Users\YourName\.android\avd\YourAVDName.avd
topath=c:\Android\YourAVDName.avd
I agree with Zian, something is seriously wrong here and you should consider reinstalling. Also make sure of the following:
1) Make sure your avd folder looks sane. This can be found in the .android directory in your home directory. Look in
~\.android\avd\<name-of-avd>.avd\
and you should seeconfig.ini
anduserdata.img
files, plus an sd image if you created one. Make sure yourconfig.ini
looks something like this:Or, if you don't have any custom settings, then it will just consist of this one line:
2) Make sure you have the latest version of the ADT Eclipse plugin (v0.95).
3) Also, you really truly shouldn't have any permissions problems within your home directory, but hey, it's Windows -- you never know. So you may want to manually set the permissions to the avd/ folder to read/write/execute, just to be sure.
4) Other than that, reinstall with extreme prejudice!