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

后端 未结 14 2065
后悔当初
后悔当初 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:36

    I had same issue for windows , the cause of the problem was currupted or missing dll files. I had to change them.

    In android studio ,

    Help Menu -> Show log in explorer.

    It opens log folder, where you can find all logs . In my situation error like "Emulator terminated with exit code -1073741515"

    1. Try to run emulator from command prompt ,
    • Go to folder ~\Android\Sdk\emulator

    • Run this command:

      emulator.exe -netdelay none -netspeed full -avd  
      
      ex: emulator.exe -netdelay none -netspeed full -avd Nexus_5X_API_26.avd
      

      You can find this command from folder ~.android\avd\xxx.avd\emu-launch-params.txt

    1. If you get error about vcruntime140 ,
    • Search and download the appropriate vcruntime140.dll file for your system from the internet (32 / 64 bit version) , and replace it with the vcruntime140.dll file in the folder ~\Android\Sdk\emulator

    • Try step 1

    • If you get error about vcruntime140_1 , change the file name as vcruntime140_1.dll ,try step 1

    1. If you get error about msvcp140.dll
    • Search and download the appropriate msvcp140.dll file for your system from the internet (32 / 64 bit version)
    • Replace the file in the folder C:\Windows\System32 with file msvcp140.dll
    • Try step 1

    If it runs , you can run it from Android Studio also.

提交回复
热议问题