一、The emulator process for AVD Pixel_2_API_30 has terminiated.
问题描述:
启动arm镜像失败提示“The emulator process for AVD Pixel_2_API_30 has terminiated.”
解决问题步骤:
1、镜像选择9、10 x86镜像提示abi不匹配;
2、选择arm的9、10镜像启动失败。
3、后来百度找到资料说Android11的x86镜像可以兼容arm的app,替换镜像之后还是安装不了
4、最后用Android11的x86_64镜像替换,安装app成功,镜像选择建截图
查找解决方法时,找到的一些问题解决建议,虽然没有解决我的问题,但是也在这里记录下:
How To Solve The emulator process for AVD Pixel_C_API_30 was killed In macOS Error ?
Question: How To Solve The emulator process for AVD Pixel_C_API_30 was killed In macOS Error?
Answer: To Solve The emulator process for AVD Pixel_C_API_30 was killed In macOS Solution 1 Is if you can update your macOS to the latest version of Big Sure then Your error will be solved. I think this problem occurs only for Catalina users. The second possible solution is you have to downgrade the emulator for Catalina. To downgrade the emulator just follow the below steps. And the third one is Just to download the emulator and place it into the SDK folder.
Solution 1 : Update to Big Sure
Yes, Most of macOS users face this issue now, You can track the issue here.
Solution 1 Is if you can Update your macOS to latest version of Big Sure then Your error will be solve. I think this problem occurs only for catalina users.
Solution 2 : Downgrade emulator for Catalina
Second possible solution is you have to downgrade emulator for Catalina. To downgrade emulator just follow below steps.
Just Download emulator 30.7.3 From Here.
Now Unzip This file that you have downloaded emulator-darwin_x64-7425822.zip
Run command xattr -rc * to remove all extended attributes.
Now just find your emulator folder.
Might be yuor emulator folder can be found In this path /Users/xxx/Library/Android/sdk
Just replace that folder with unzipped folder.
modify packages.xml to 3073
Thats all.
Solution 3 : Download Emulator
Just download the emulator and palce it into SDK folder.
32-bit
MacOS – https://dl.google.com/android/repository/emulator-darwin-6855416.zip
64-bit
MacOS – https://dl.google.com/android/repository/emulator-darwin-6885378.zip
Solution 4: Create the file ~/.android/advancedFeatures.ini
Believe me you are not gonna trust me. I am just faced this issue in my windows machine. Nothing was worked. I am wasted my two days to solve this error but no result. Then I just try this solution And boom It worked.
You just need to Create the file ~/.android/advancedFeatures.ini (for Windows users path should be C:\Users\Dane.android\advancedFeatures.ini) with the following content:
Vulkan = off
GLDirectMem = on
二、INSTALL_FAILED_NO_MATCHING_ABIS
问题描述:
问题原因:
avd镜像的abi和app打包的abi不一致,一般app用的是arm,而Android studio一般推荐的是x86镜像abi,
解决方法:
将镜像替换为arm的abi镜像(但我还是遇到了第一个问题,最终用的是第一个问题的解决方案)
虽然找到了解决方法,但是启动arm镜像失败的原因还是没有找到,其他人如果找到了,欢迎评论分享,谢谢!
参考链接:
http://www.javashuo.com/article/p-cnyqajcw-ma.html
https://exerror.com/the-emulator-process-for-avd-pixel_c_api_30-was-killed-in-macos/
https://stackoverflow.com/questions/68312799/android-studio-the-emulator-process-for-avd-pixel-2-api-30-has-terminated-on