x86 AVD 安装 arm app 失败

一、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成功,镜像选择建截图选择11x86_64镜像
查找解决方法时,找到的一些问题解决建议,虽然没有解决我的问题,但是也在这里记录下:
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

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 要安装 AVD (Android Virtual Device),请按照以下步骤操作: 1. 打开 Android Studio,点击"Configure"菜单下的"AVD Manager" 2. 在 AVD Manager 窗口中点击"Create Virtual Device" 3. 选择要安装的设备类型,然后点击"Next" 4. 选择要安装的系统映像,然后点击"Next" 5. 设置 AVD 的配置,如内存大小,存储大小等,然后点击"Finish" 6. 在 AVD Manager 窗口中点击要启动的 AVD,然后点击"Start"按钮 这样就可以在虚拟设备上运行和调试您的应用程序了。 ### 回答2: Android Studio是由Google推出的一款用于开发Android应用的集成开发环境(IDE),它拥有各种功能,如代码编辑器、调试器、性能分析器等。而AVDAndroid Virtual Device,它是一个在计算机上模拟一个Android设备的工具。 首先,我们需要在Android Studio安装AVD。在安装之前,先要确保计算机中已经安装Android Studio。 1.打开Android Studio后,点击【AVD Manager】。 2.在【AVD Manager】中,点击【Create Virtual Device】。 3.选择要模拟的设备,并点击【Next】。 4.选择要使用的系统镜像,并点击【Next】。 5.更改AVD名称、设置屏幕分辨率等信息,并点击【Finish】。 安装完成后,我们可以在【AVD Manager】中查看已创建的AVD,并可以启动模拟器进行测试。 AVD安装过程相对简单,但需要注意的是,如果计算机硬件配置较低,模拟器可能会运行缓慢。因此,在使用AVD前,建议先检查计算机的硬件配置,以及选择合适的配置进行模拟器的创建。在创建AVD的过程中,我们还可以选择使用基于x86架构的镜像,这样可以提高模拟器的运行速度,但需要保证计算机的CPU支持硬件虚拟化。 总之,AVD安装Android开发过程中必不可少的一步,它可以帮助我们进行应用的测试与调试,提高开发效率。同时,我们也需要注意计算机的硬件配置,以及AVD的配置方式,以确保模拟器的运行体验。 ### 回答3: Android Studio是谷歌官方的Android应用程序开发工具。AVDAndroid虚拟设备,可以在Android Studio中进行模拟测试应用程序,实现手机虚拟模拟。安装Android Studio并配置AVD以便在模拟设备上测试应用程序Android应用程序开发的第一步。 首先,我们需要下载并安装Android Studio,你可以从官方网站下载,下载完后输入指令“./studio.sh”执行。等待一段时间后,你将看到“Welcome to Android Studio”界面,选择“Configure”菜单下的“AVD Manager”就可以打开AVD Manager。 在AVD Manager窗口打开后,可点击“Create Virtual Device” 进入模拟设备创建界面,这时你可以按照所需的配置要求选择所需的设备、系统版本等。如“Pixel 3a”设备,自动选择了API级别28的系统版本。接下来点击“Next”按钮,展开系统映像信息,选择最新的已经下载的映像类型,然后在以下各选项中选择并配置需要的选项,点击“Finish”按钮来创建一个设备。其它设备也可以按照此方法进行创建,通过AVD配合实现模拟设备,即可运行你的应用程序。 在创建完成模拟设备后,你就可以在Android Studio编辑器中打开你的项目并启动AVD Manager,然后选择你需要的模拟设备,向其加载应用并开始测试。 总的来说,安装AVDAndroid开发的关键步骤之一。通过模拟设备的模拟和测试,可以使开发者在开发应用程序时更加方便地调试和测试应用程序,提高开发效率和应用程序的质量。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值