ERROR: resizing partition e2fsck failed with exit code 8

transmitteam picture transmitteam · Oct 5, 2016 · Viewed 38.3k times · Source

I'm new to android studio. When I try to run my first programme in android studio on the emulator, I get this error.

I have searched through other comments and have also tried decreasing my build.gradle from 24.0.0 to 23.0.3 as shown below, but it still doesn't work. I'm running on Nexus 5X API 23.

android {
    compileSdkVersion 24
    buildToolsVersion "23.0.3"
}

The error shown is:

Cannot launch AVD in emulator.

Output:
emulator: WARNING: userdata partition is resized from 756 M to 800 M ERROR: resizing partition e2fsck failed with exit code 8
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554

Answer

alex picture alex · Oct 6, 2016

I had the same issue after updating Android SDK tools package to version 25.2.2. To fix the problem i've restarted Android SDK Manager and then created new virtual device instead of using the old one.