3

Is there any way to change this in the android SDK? It looks like some of the .bat files in the \tools\ folder sets some environment variables but cant tell exactly what they are doing.

I set my windows system profile settings in the registry to point to d:\users and everything else is pointing there but the android sdk keeps wanting to put things in c:\users...

My reasoning for this is I have a much faster drive as my d drive(5 disk raid0) and my system drive is a 5400 spin ide drive...

tshepang
  • 12,111
  • 21
  • 91
  • 136
disgustipated
  • 166
  • 1
  • 1
  • 5
  • see my answer on http://stackoverflow.com/questions/4810478/android-sdk-and-avd-manager-cant-create-avd-in-correct-file-location – Toybuilder Mar 14 '11 at 01:23

2 Answers2

11

I found that adding the environment variable ANDROID_SDK_HOME to windows and pointing it to d:\users\< myusername > did the trick.

I changed my user profile folders by editing the registry keys

hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

and also the profileimagepath under my user's guid to point to the d drive i left the programdata folder key alone however.

Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
disgustipated
  • 166
  • 1
  • 1
  • 5
0

Go to "Control Panel" ⇒ "System" ⇒ (Vista/7) "Advanced system settings" ⇒ Switch to "Advanced" tab ⇒ "Environment variables" ⇒ Choose "System Variables" for all users" ⇒ Select variable "PATH" ⇒ Choose "Edit" for modifying an existing variable ⇒ In variable "Value", APPEND your \tools directory (e.g., "d:\bin\android-sdk\tools"), followed by a semi-colon ';', IN FRONT of all the existing path entries. DO NOT remove any existing entry; otherwise, some programs may not run after that Add the platform-tools directory to the PATH too.

Syed Mohamed
  • 1,339
  • 1
  • 15
  • 23