Reputation: 317
I 've downloaded android studio 1.0 but when I create an emulator and i try to start it gives the following message PANIC: Could not find android2.ini file in $ANDROID_AVD_HOME nor in $HOME/.android/avd
Upvotes: 6
Views: 32363
Reputation: 3712
Test Ubuntu 12.04 & 12.10 & 14.10 & 15.04 & 15.10 & 16.04
Open your terminal (ctrl +t)
sudo su
nautilus
ctrl + h
Search folder .android/avd
Copy this folder /avd
Paste in /home/YouUser/.android/
And problem solved
Upvotes: 3
Reputation: 19
$ sudo rm -r .android
$ sudo ln -s /root/.android ./.android
Upvotes: 1
Reputation: 31
ANDROID_SDK_HOME=D:\Program Files\android-sdk-windows
(select your home directory of android sdk )%Android_SDK_HOME%/tools;
"it works!
Upvotes: 3
Reputation: 4076
just set ANDROID_SDK_HOME system variable to point the home directory of android avd, just like you did with JAVA_HOME :)
Upvotes: 4
Reputation: 15
I was experiencing the same issue, and just resolved it by changing the environment variables from ANDROID_AVD_HOME
to $ANDROID_AVD_HOME
.
This must have been a change between versions. I had removed all android/appinventor/eclipse programs, SDKs and so on - some manually - in order to get a fresh install and wound up with this error.
Upvotes: 2
Reputation: 546
My .android/avd was in root folder, but setting ANDROID_AVD_HOME to it made no good. So I just copied files from /root/.android/avd to /home/username/.android/avd Not best solution, but working
Upvotes: 13