Cannot start avd emulator on android studio 1.0

江枫思渺然 提交于 2019-12-01 16:48:34

问题


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


回答1:


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




回答2:


just set ANDROID_SDK_HOME system variable to point the home directory of android avd, just like you did with JAVA_HOME :)




回答3:


  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!




回答4:


It's easy

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

Good Luck




回答5:


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.




回答6:


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



回答7:


I had the same problem. This is how I got it solved.

http://kalpa-gunarathna.blogspot.com/2015/04/android-emulator-not-starting-on-ubuntu.html

It completely solved the problem. This post explains why it happens and the exact solutions. :)



来源:https://stackoverflow.com/questions/27494086/cannot-start-avd-emulator-on-android-studio-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!