Android Studio AVD - Emulator: Process finished with exit code 1

后端 未结 14 1989
后悔当初
后悔当初 2020-12-18 18:07

I\'m having trouble starting my android emulator. Nothing appears to load.

Pixel 2 API 26 Android 8.0 x86.

Linux Ubuntu 16.04 LTS 64-bit.

相关标签:
14条回答
  • 2020-12-18 18:25

    Sometimes things need a system restart (in my case).

    0 讨论(0)
  • 2020-12-18 18:27

    None of the solutions worked for me. I ended up downloading a different emulator image.

    First I had arm64-v8a, which was giving this error. I download armeabi-v7a, which worked fine.

    Unfortunately I was not able to install HAXM accelerator as organization's softwares were blocking the installation. Hence, had to go with arm.

    0 讨论(0)
  • 2020-12-18 18:29

    These are known errors from libGL and libstdc++

    You can quick fix this by change to use Software for Emulated Performance Graphics option, in the AVD settings.

    Or try to use the libstdc++.so.6 (which is available in your system) instead of the one bundled inside Android SDK. There are 2 ways to replace it:

    • The emulator has a switch -use-system-libs. You can found it here: ~/Android/Sdk/tools/emulator -avd Nexus_5_API_23 -use-system-libs.

      This option force Linux emulator to load the system libstdc++ (but not Qt libraries), in cases where the bundled ones (from Android SDK) prevent it from loading or working correctly. See this commit

    • Alternatively you can set the ANDROID_EMULATOR_USE_SYSTEM_LIBS environment variable to 1 for your user/system.

      This has the benefit of making sure that the emulator will work even if you launched it from within Android Studio.

    See: libGL error and libstdc++: Cannot launch AVD in emulator - Issue Tracker

    0 讨论(0)
  • 2020-12-18 18:30

    Open AVD manager and click on the drop down along side with your emulator and select the show in disk and delete the file with .lock extension. After deleted, run your emulator. That works for me.

    0 讨论(0)
  • 2020-12-18 18:32

    Check android studio event log as it could be low storage issue.

    emulator: ERROR: Not enough disk space to run AVD 'Nexus_5_API_21'. Exiting...

    0 讨论(0)
  • 2020-12-18 18:35

    There might be several reasons for this.

    1. first of all, check whether the legacy mode is enabled in your bios settings. if it is not enabled, ensure to make it enabled in BIOS settings.
      1. and then In AVD Manager -> Edit -> Show Advanced Settings -> Boot Options (Select Cold boot). That fixed my issue. I hope it will fix your problem.
    0 讨论(0)
提交回复
热议问题