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

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

    For me the Environment variable was missing altogether. adding "ANDROID_AVD_HOME" as environment variable solved it. also a tip, enter the path without the "/.android/avd" part, as the application automatically adds this to it's search you don't need to specify them anymore. e.g. Env. Variable : ANDROID_AVD_HOME Value : C:\users\%USERNAME%\Androidapps

    Android studio will for emulators under C:\users\%USERNAME%\Androidapps.android\avd

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

    Or instead ANDROID_AVD_HOME enter ANDROID_SDK_HOME and Studio will work: Cannot start avd emulator on android studio 1.0

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

    You'll just have to set the ANDROID_AVD_HOME environment variable and restart Android Studio.

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

    Try changing the environment variable definition from ANDROID_AVD_HOME to $ANDROID_AVD_HOME.

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

    just this command worked for me : sudo cp -R /root/.android $HOME

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

    Just create a symlink:

    ln -s /root/.android/ /home/user/.android/
    

    This way you will solve the issue with the emulator because all sdk data is being written on /root/.android/

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