1

I use Ubuntu 12.10 and I tried to follow this guide Install android sdk and eclipse in Ubuntu 12.04 but I keep getting this error:

 Error: The AVD manager normally uses the user's profile directory to store AVD files. However it failed to find the default profile directory. To fix this, please set the environment variable ANDROID_SDK_HOME to a valid path such as ¨~¨.

Any ideas how can I fix this?

  • your blog comment says you're running maverick kde, but the question says you're running 12.10. which is it? – RobotHumans Oct 20 '12 at 23:20
  • :). I just installed. – Theo Oliveira Oct 21 '12 at 0:42
1

You have to export the variable ANDROID_SDK_HOME to the path where your Android SDK is: example:

ANDROID_SDK_HOME=/home/theo/android-sdk/
  • Well, I suppose it´s like this? ´ export ANDROID_SDK_HOME=${PATH}:/home/theo/android-sdk-linux/´ It didn´t work but I assume it´s wrong – Theo Oliveira Oct 21 '12 at 2:26
  • 1
    Thanks both. I figure it out :P I was putting the PATHS on bash_profile instead of bashrc and also putting export and path on the last one. It´ś working thanks Hanynowsky and @Kyle Macey – Theo Oliveira Oct 21 '12 at 2:48
1

Do what it says and run

ANDROID_SDK_HOME=/home/your_username

in the terminal

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.