ERROR: resizing partition e2fsck failed with exit code 8

前端 未结 8 1177
别跟我提以往
别跟我提以往 2020-12-29 22:38

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

相关标签:
8条回答
  • 2020-12-29 23:14

    I ran into the same type of problem after installing an update to one the SDK platforms, except my output log contained more than complaints. It contained a possible solution to the problem. See the log below.

    emulator: WARNING: userdata partition is resized from 769 M to 770 MERROR: resizing partition e2fsck failed with exit code 8
    
    Hax is enabled
    Hax ram_size 0x40000000
    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
    Your emulator is out of date, please update by launching Android Studio:
     - Start Android Studio
     - Select menu "Tools > Android > SDK Manager"
     - Click "SDK Tools" tab
     - Check "Android SDK Tools" checkbox
     - Click "OK"
    Emulator Android_Accelerated_x86_Nougat is running.
    Waiting for emulator to be ready...
    

    Solution 1: Update the SDK Tools

    1. Open Android SDKs and Tools window.
    2. Go to the Tools tab (the name of this tab has changed).
    3. Expand the Android SDK Tools group and make sure you select the latest available version.
    4. Click Apply Changes.

    Possible problem with this solution:

    You may run into a new problem by following this solution. When you run the emulator it will do a cold boot and ask you for a decryption password. If you don't provide the right password, it will display a black screen and then tell you that the decryption failed.

    So this did not work in my case, but your mileage may vary.

    Solution 2: Factory reset the emulator

    I don't use Android Studio. I use Xamarin with Visual Studio. Installing the Xamarin Device Manager and doing a factory reset of the emulator is what fixed the problem for me.

    You should have a similar option if you are using Android Studio. But if you would like to, you can try downloading and installing the Xamarin Device Manager by Microsoft. It's an independent application that does not require installation of Visual Studio or Xamarin.

    0 讨论(0)
  • 2020-12-29 23:16

    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.

    0 讨论(0)
提交回复
热议问题