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

AndroidAndroid StudioAndroid Emulator

Android Problem Overview


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 offset.......

This error also shows when the application is running every minute or so.

I'm using

  • Android Studio 3 Beta 6
  • API Level 26
  • Emulator 26.1.4
  • Android SDK
  • Tools 26.1.1
  • Image x86 26 (oreo)

...

I've tried to re-install all of the SDK tools and update everything to the latest but had no luck. I also re-installed the IDE and re-downloaded everything and it still shows this error.

I'm wondering if anyone ran into this error as well?

Android Solutions


Solution 1 - Android

I'm sure (hope?) Google will fix this bug soon, but in the meantime all the popup notifications are very annoying. For me the emulator seems to be working fine. I just wanted to temporarily disable the popup notification.

You can do that by selecting the Settings icon on the popup. Then choose No popup from the menu for Emulator.

enter image description here

I left the Log checkbox checked so that I can still monitor the Event Log.

Solution 2 - Android

I had same issue for emulator running Oreo. Emulator won't boot up and throw message 'Emulator: qemu-system-i386.exe: goldfish_battery_read: Bad offset '.

I solved it by following;

  1. Launch standalone sdk manager

  2. Download "Google Play Intel x86 atom Image" under API 26 (OREO)

  3. Launch avd manager from sdk manager > tools > manager avds.. (not from android studio).

  4. Create or edit AVD.

  5. Under CPU/ABI choose image "Google Play Intel x86 atom Image" (instead of "Google API Intel x86 atom Image")

  6. Start AVD. It should work.

Solution 3 - Android

I have the same issue. It's really weird but I solve partially that changing the Emulator.ini file adding/changing:

hw.audioInput=no
hw.audioOutput=no

Solution 4 - Android

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)

  1. 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)

  1. Click Apply.

  2. Execute in terminal: adb kill-server.

  3. Exit to close all Android Studio.

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

  5. 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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDesolatorView Question on Stackoverflow
Solution 1 - AndroidSuragchView Answer on Stackoverflow
Solution 2 - AndroidbikramView Answer on Stackoverflow
Solution 3 - AndroidAndres Vasquez AgramontView Answer on Stackoverflow
Solution 4 - AndroidMach1View Answer on Stackoverflow