Android Emulator: qemu-system-i386.exe: goldfish_battery_read: Bad offset

前端 未结 4 1992
忘了有多久
忘了有多久 2021-01-31 01:09

So, whenever I try to launch my app on the android emulator the IDE gets bombarded with this error:

Emulator: qemu-system-i386.exe: goldfish_battery_read: Bad of         


        
4条回答
  •  [愿得一人]
    2021-01-31 01:50

    Until Google fixes this for Android API 27, the following steps worked for me:

    1) In SDK Manager/SDK Platforms tab/ click Show Package Details (check box on bottom right).

    -Uncheck to remove all Android API 27 settings.

    -Select to install Android 8.0, Android SDK Platform 26, Sources for Android 26, Google APIs Intel x86 Atom System Image, Google APIs Intel x86 Atom_64 System Image (you may NOT need the Atom_64 if you don't have a 64bit system)

    2) Click SDK Tools tab then click Show Package Details (check box on bottom right).

    -Under Android SDK Build-Tools, unselect to uninstall any or all 27.0.0 - 27.0.3.

    -Select to install 26.0.2 (which works for me but you can select whatever other builds you want just STAY AWAY from the 27s)

    3) Click Apply.

    4) Execute in terminal: adb kill-server.

    5) Exit to close all Android Studio.

    6) In Windows Task Manager, verify or End task for adb.exe (which should already be killed), qemu-system-i386.exe.

    7) Restart AS and make sure you have the following in your Gradle build file: buildToolsVersion '26.0.2'

    You should now be able to run your emulator without the qemu-system-i386.exe issues.

提交回复
热议问题