Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 640
Desolator Avatar asked Sep 21 '17 21:09

Desolator


2 Answers

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.

like image 106
Suragch Avatar answered Oct 13 '22 22:10

Suragch


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.
like image 45
bikram Avatar answered Oct 14 '22 00:10

bikram