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

前端 未结 10 1470
鱼传尺愫
鱼传尺愫 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: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.

提交回复
热议问题