Could not find INI file in $ANDROID_AVD_HOME nor in $HOME/.android/avd

前端 未结 10 1395
鱼传尺愫
鱼传尺愫 2020-12-25 12:16

I cannot start a virtual devices on android SDK when I press the start button on AVD manager, this error shows on my screen:

Starting emulator for AVD \'AVD         


        
相关标签:
10条回答
  • 2020-12-25 12:30

    I just encountered this problem again and realized that newer versions of Android Studio and SDK are placing AVDs along the following path for OSX:

    Users/yourUsername/Library/Android/sdk/.android/avd as opposed to the older practice of placing AVDs here: Users/yourUsername/.android/avd

    So, I just updated my bash_profile file to point ANDROID_AVD_HOME to the new location--which did indeed contain the ini file for the AVD I'd created, and then the launch went fine.

    0 讨论(0)
  • 2020-12-25 12:34

    I solved this problem, on Ubuntu, by finding where the .avd and .ini files from the AVD manager were downloaded. By default, these are named after the virtual device created in the AVD manager and will be like this: Nexus_4_API_22.ini and will have a .ini and .avd file both with the same name. In my case, they were located in /root/.android/avd/.

    From there, I copied both the ini and avd files of the virtual device (If you have more than one, copy all of the virtual devices you want) into $HOME/.android/avd/, as that is one of the locations the message requested. On linux, sudo cp /root/.android/avd/Virual_Device_XX.ini $Home/.android/avd/ and do the same with the .avd file. Hope this helps anyone who runs into this issue.

    0 讨论(0)
  • 2020-12-25 12:34

    because android SDK environment ANDROID_SDK_HOME, wrong path. /usr/local/opt/android-sdk or /Users/[userName]/Library/Android/sdk TRUE

    0 讨论(0)
  • 2020-12-25 12:35

    Make sure your ANDROID_SDK_HOME or ANDROID_AVD_HOME is defined correctly and AVD is installed in AVD Manager.

    You can get the avd folder path by clicking view details of any AVD you have installed.

    Directories are searched by emulator in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME\avd and $HOME.android\avd .

    Check whether the avd folder path matches any of the above path. Make sure there is no empty avd folder in any of the above path of defined environment variables.

    0 讨论(0)
提交回复
热议问题