Saturday, November 14, 2009

... Android SDK and User's folder

Well, I started studying the Android SDK with Eclipse 3.5 Galileo and the ADT Plugin, running on Windows 7 Professional.
The objective of this post is not explaining how to install them nor configuring the environment; if you are looking for that information, you can take a look at the Android Developer page.

After installing the SDK, the ADT Plugin for Eclipse and setting the location of android sdk folder into the plugin's settings I still couldn't run the emulator. No matter how much I tried all I could get was the following error:

Reading the error message I took a look at the list of AVDs (Android Virtual Devices) and I could see that the device was there:

So, after taking a look at Google during a few days, I found the solution here; and I decided to show it to you guys who are having the same issue.

The cause:
I changed the location of my user folder from the default (C:\users\user) to another disk partition. The Eclipse, Java and the Emulator, they have different behaviors when looking for this folder, the changed location was causing a conflict which was avoiding the command line and Eclipse of finding the AVDs.

Solution:
Create a Environment variable called ANDROID_SDK_HOME and point it to your user folder, where the folder .android is located (Ex: F:\user).
Doing this, you will override the behaviors and fix the issue.

I hope this post could help you guys.

0 comments: