Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

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

migrated from programmers.stackexchange.com Oct 20 '12 at 22:53

This question came from our site for professional programmers interested in conceptual questions about software development.

2 Answers

up vote 1 down vote accepted

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/
share|improve this answer
    
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
add comment

Do what it says and run

ANDROID_SDK_HOME=/home/your_username

in the terminal

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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