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 $ANDROI
$ sudo rm -r .android
$ sudo ln -s /root/.android ./.android
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
ANDROID_SDK_HOME=D:\Program Files\android-sdk-windows
(select your home directory of android sdk )%Android_SDK_HOME%/tools;
"it works!
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.
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
just set ANDROID_SDK_HOME system variable to point the home directory of android avd, just like you did with JAVA_HOME :)