AFS
AFS

Reputation: 317

Cannot start avd emulator on android studio 1.0

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

Answers (6)

David Hackro
David Hackro

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

user4697854
user4697854

Reputation: 19

  1. Delete /home/username/.android: $ sudo rm -r .android
  2. Make a link $ sudo ln -s /root/.android ./.android

Upvotes: 1

Jessica lam
Jessica lam

Reputation: 31

  1. in the environment variables add a new "system variables"
    ANDROID_SDK_HOME=D:\Program Files\android-sdk-windows (select your home directory of android sdk )
  2. modify system variables Path, add "%Android_SDK_HOME%/tools;"

it works!

Upvotes: 3

aurelius
aurelius

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

humptyNotDumpty
humptyNotDumpty

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

Lina Shyshova
Lina Shyshova

Reputation: 546

Ubuntu

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

Related Questions