Android 9.+ emulator does not start

后端 未结 4 1035
抹茶落季
抹茶落季 2021-01-15 17:31

All AVD images work on my machine except for Android 9.+ (Google Play) & Android 9.+ (Google APIs) (the Android Studio emulator for Android Q b

4条回答
  •  迷失自我
    2021-01-15 18:03

    In my case all other emulators started, except Q. I have all needed SDK and AVDs.

    But every time emulator didn't start without any error.

    I saw Emulator in Android Studio doesn't start and found a way to understand a reason. I started from avd path:

    D:\Android\emulator\emulator.exe -avd Pixel_2_API_29 -netspeed full -netdelay none
    

    and got an error: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [D:\Android]!. In PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value I found that we should read config.ini inside 'Pixel_2_API_29.avd' folder and detect the line

    image.sysdir.1=system-images\android-29\google_apis_playstore\x86\
    

    I understood that I missed android-29 image in SDK path!

    I knew that moved SDK and AVD folders from C:... to D:\Android, but SDK was kept in two folders.

    And I forgot to change one system variable (ANDROID_HOME):

    So I changed it to D:\Android and restarted the PC.

    After restarting I deleted old SDK folder (in 'AppData\Local\Android'). Then I started again:

    D:\Android\emulator\emulator.exe -avd Pixel_2_API_29 -netspeed full -netdelay none
    

提交回复
热议问题