ERROR: resizing partition e2fsck failed with exit code 8

前端 未结 8 1176
别跟我提以往
别跟我提以往 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 22:53

    WARNING: userdata partition is resized from 756 M to 800 M

    For this warning set Internal Storage = 756 MB error warning will be removed.

    0 讨论(0)
  • 2020-12-29 22:53

    Change disk.dataPartition.size to 756M in:

    ~/.android/avd/your_avd_name.avd/config.ini
    
    0 讨论(0)
  • I know this is an "old" question, but the following command solved the problem for me:

    ./emulator -data /sdk/path/here/system-images/android-API/default/x86/userdata.img -avd your_avd_name
    

    where API is the api level you want to use. I found that this is only needed for API<20

    Note: I had that problem with libstdc++, so I had to use the LD_PRELOAD envvar. I removed it in the example, so for me, the complete command looks like this:

    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./emulator -data /home/username/Android/Sdk/system-images/android-API/default/x86/userdata.img -avd Whatever
    
    0 讨论(0)
  • 2020-12-29 22:59

    I had the same issue, and tried everything that is suggested above, without success. Being desperate, I tried every menu I could find in AVD. So, I came on "show on disk" menu, at the right of the line of my device, in AVD device list.

    Android Studio opened an explorer window, and showed me a directory with a name not matching my device name... Probably because I had renamed my device in AVD, and Android Studio had not reported this change on disk.

    So I deleted my device, created a new one with same parameters, verified that directory and name matched, and launched the device... and it worked!!!

    Hope this will be helpfull to anyone...

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

    The misleading ERROR: resizing partition e2fsck failed with exit code 8 when starting an Android Virtual Device (AVD) can occur when you have an old version of Android SDK installed, but without the Android Studio. The old standalone graphical SDK Manager is deprecated as of SDK Tools v25.2.3 - running it does not report any errors, but does not properly update your Android SDK.

    Use the new command line SDK Manager ./sdkmanager --update to properly update your Android SDK and the e2fsck failed with exit code 8 problem will be gone.

    More information: How to update Android emulator without Android Studio?

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

    None of the answers here solved my issue, but I did find this after searching for a while and it solved my issue. If all else fails, check out the answer here: Emulator: ERROR: resizing partition e2fsck failed with exit code 1

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