Thanks Raphael. Here is my setting: USERPROFILE=C:\Users\<user>
Setting the ANDROID_SDK_HOME to c:\Users\<user> worked fine. Out of interest, isn't that name a bit confusing? It sounds more like the SDK location than a user-specific android folder. Maybe ANDROID_USER_HOME... I tried copying my old d:\.android to c:\Users\<user>\.android but that didnt work because AVD .ini files use absolute paths. So I just created the AVDs fresh and it all works. Maybe relative paths make more sense... My suspicion is that the "android" command tool is calculating the .android location to be the parent of, for example, My Documents (when ANDROID_SDK_HOME is not specified). Is this correct? If so, I think it should be changed to default to the USERPROFILE variable instead. On Oct 29, 3:32 am, Raphael <[email protected]> wrote: > Well the emulator is C app and the android tool is a Java app so they > have slightly different ways to get your user profile directly. > > Out of curiosity, if you do a "set" under a command-prompt, what is > your USERPROFILE variable? > > Your best solution is to define a global environement variable > ANDROID_SDK_HOME. > > To do that: Start > Control Panel > System > Advanced System Settings> > Environment Variables. Create a new user one called > > "ANDROID_SDK_HOME" and set it to the path where you want .android to > be created, e.g. maybe "d:\" > > R/ > > > > On Wed, Oct 28, 2009 at 6:10 AM, westmeadboy <[email protected]> wrote: > > > This is a problem where the .android folder is being placed in the > > wrong location on Vista. > > > When I do this: > > > android create avd -n android1.5 -t 2 > > > the .android folder is placed at d:\.android. > > > This is the same when using the Eclipse ADT plugin. > > > However, the documentation states: > > > "By default, the android tool creates the AVD directory inside ... C: > > \Users\<user>\.android\ on Windows Vista." > > > So something is clearly going wrong. > > > I assume its because I have relocated most of my special folders like > > Desktop and Documents to the d:\ drive. > > > When I then do: > > > android list avds > > > it correctly shows the avd I have just created. > > > However, if I try to run the emulator then the avd cannot be found. > > > My workaround for this is to copy the d:\.android folder to C:\Users > > \<user>\.android > > > In short, it looks as though the emulator and the android command are > > using different logic to work out the default .android location. > > > I've tested this using the 1.5 and 2.0 SDKs. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

