简体   繁体   中英

macOS Mojave: Android studio: the emulator process for AVD was killed

I want to try android auto emulator, so I am trying to download it from the AVD manager, but after several times. I then find even my phone emulator can not be opened, with this error: The emulator process for AVD was killed

I have tried to upgrade my android studio, reinstall it, uncheck platform-tools and check in AVD manager, replace emulator folder, you name it, I have tried them all, but not working.

After I try to start emulator with command line, error like below:

dyld: Symbol not found :_vmnet_shared_interface_name_key
Referenced from ..../qemu-system-x86_64 (which was built for Mac OS X 
11.1)

I had the same problem and i fixed it by downgrading the Emulator:

    1. Download an old version of emulator (in my case i used emulator-darwin_x64-7425822 download from here )
    1. Replace the emulator folder you downloaded with the one in your sdk folder (should normally be here ~/Library/Android/sdk )

You can also fix it by upgrading your macOS version to the latest one.

The reason is the latest emulator can not work on the mojave(Mac OS X 10.14).

Solution:

  1. Install emulator by sdk manager, and create vitual devices by svd
  2. Try to download an older version ( https://dl.google.com/android/repository/emulator-darwin-6885378.zip )
  3. Unzip the file, then replace your android emulator folder(usually ~/Library/Android/sdk/emulator ) with the folder that you just unziped.
  4. go to your emulator folder cd ~/Library/Android/sdk/emulator , list all the virtual devices ./emulator -list-avds then try to open one of the virtual devices by ./emulator @YOUR_DEVICE_NAME

I had same issue, and The simple solution is:

Try to install lower API Level of virtual device , so for example if you are trying to use API Level 30, change to API Level 27 and see if it works

在此处输入图片说明

so you need to

  • click on AVD Manger icon on top right corner of your Android studio, (or navigate to Tools then AVD Manager)
  • then click on Create Virtual Device button
  • select a device (such as Pixel 2) and click next
  • try API LEVEL 27 (Oreo)

Hope that can fix your issue same as it fixed mine

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM