M1 芯片(苹果芯片)模拟器上的 Android studio Arctic Fox beta 3 无法启动:“AVD 'myAvdName' 的模拟器进程已终止." [英] Android studio Arctic Fox beta 3 on M1 Chip (Apple silicon) emulator cannot start: "The emulator process for AVD 'myAvdName' has terminated."

查看:120
本文介绍了M1 芯片(苹果芯片)模拟器上的 Android studio Arctic Fox beta 3 无法启动:“AVD 'myAvdName' 的模拟器进程已终止."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 MacBook Air M1 上安装了官方最新版和北极狐 Beta 3 的 Android Studio.无法在两个版本的 android 上运行模拟器.

Have Android studio both official latest and Arctic Fox Beta 3 installed on my MacBook Air M1. cannot get the emulator running on neither edition of android stood.

AVD 'myavxname' 的模拟器进程已终止."

"The emulator process for AVD 'myavxname' has terminated."

我确保我使用另一个(ARM 映像)而不是 Intel 的,因为网络上有很多帖子,而且这些帖子似乎保存了很多,而不是我.

I have made sure I use the other (ARM image) instead of the Intel ones, as there are quite some posts on the web and it seems those post saved many, not me.

我在终端中使用命令查看更多有用的错误信息:

I use the command in terminal to check more helpful error message:

~/Library/Android/sdk/emulator/emulator -avd P4S

~/Library/Android/sdk/emulator/emulator -avd P4S

,p4s 是我的模拟器配置名称.

, p4s is my emulator config name.

同时运行命令

pip3 安装 opencv-python-headless

pip3 install opencv-python-headless

仍然被下面的这个错误阻止.

still blocked by this error below.

模拟器:Android 模拟器版本 30.3.5.0 (build_id 7036990)(CL:N/A) 模拟器:INFO:在 api 级别忽略 arm 的 sdcard >= 30handleCpuAcceleration:hvf 模拟器的功能检查:信息:QtLogger.cpp:68: 警告:找不到 Qt 平台插件可可"在/Users//Library/Android/sdk/emulator/lib64/qt/plugins"((null):0, (null))

emulator: Android emulator version 30.3.5.0 (build_id 7036990) (CL:N/A) emulator: INFO: ignore sdcard for arm at api level >= 30 handleCpuAcceleration: feature check for hvf emulator: INFO: QtLogger.cpp:68: Warning: Could not find the Qt platform plugin "cocoa" in "/Users//Library/Android/sdk/emulator/lib64/qt/plugins" ((null):0, (null))

致命:此应用程序无法启动,因为没有 Qt 平台插件可以初始化.重新安装应用程序可能会解决这个问题问题.((null):0, (null)) 模拟器: INFO: QtLogger.cpp:68: Fatal:此应用程序无法启动,因为没有 Qt 平台插件可以被初始化.重新安装应用程序可能会解决此问题.((null):0, (null))

Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. ((null):0, (null)) emulator: INFO: QtLogger.cpp:68: Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. ((null):0, (null))

这里是 ls-lR >我在Android/sdk/emulator/lib64下的文件夹的ls.txt

and here is the ls-lR > ls.txt of my folder under Android/sdk/emulator/lib64

total 0 drwxr-xr-x 9 员工 288 Jun 12 15:44 libdrwxr-xr-x 3 工作人员 96 Jun 12 15:44 libexec-rw-r--r-- 1 名员工 0 Jun 14 23:59 ls.txt drwxr-xr-x 7 名员工 224 Jun 12 15:35 插件 drwxr-xr-x 2员工 64 六月 12 15:44 资源 drwxr-xr-x 3 员工 966 月 12 日 15:35 翻译

total 0 drwxr-xr-x 9 staff 288 Jun 12 15:44 lib drwxr-xr-x 3 staff 96 Jun 12 15:44 libexec -rw-r--r-- 1 staff 0 Jun 14 23:59 ls.txt drwxr-xr-x 7 staff 224 Jun 12 15:35 plugins drwxr-xr-x 2 staff 64 Jun 12 15:44 resources drwxr-xr-x 3 staff 96 Jun 12 15:35 translations

./lib: 总共 52872-rwxr-xr-x 1 名员工 7833392 Jun 12 15:44 libQt5CoreAndroidEmu.5.dylib-rwxr-xr-x 1 名员工 899808 Jun 12 15:44 libQt5DBusAndroidEmu.5.dylib-rwxr-xr-x 1 名员工 7123104 Jun 12 15:44 libQt5GuiAndroidEmu.5.dylib-rwxr-xr-x 1 名员工 2180144 Jun 12 15:44 libQt5NetworkAndroidEmu.5.dylib-rwxr-xr-x 1 名员工 466768 Jun 12 15:44 libQt5PrintSupportAndroidEmu.5.dylib-rwxr-xr-x 1 名员工 477808 6 月 12 日 15:44 libQt5SvgAndroidEmu.5.dylib-rwxr-xr-x 1 员工 8073344 Jun 12 15:44 libQt5WidgetsAndroidEmu.5.dylib

./lib: total 52872 -rwxr-xr-x 1 staff 7833392 Jun 12 15:44 libQt5CoreAndroidEmu.5.dylib -rwxr-xr-x 1 staff 899808 Jun 12 15:44 libQt5DBusAndroidEmu.5.dylib -rwxr-xr-x 1 staff 7123104 Jun 12 15:44 libQt5GuiAndroidEmu.5.dylib -rwxr-xr-x 1 staff 2180144 Jun 12 15:44 libQt5NetworkAndroidEmu.5.dylib -rwxr-xr-x 1 staff 466768 Jun 12 15:44 libQt5PrintSupportAndroidEmu.5.dylib -rwxr-xr-x 1 staff 477808 Jun 12 15:44 libQt5SvgAndroidEmu.5.dylib -rwxr-xr-x 1 staff 8073344 Jun 12 15:44 libQt5WidgetsAndroidEmu.5.dylib

./libexec: total 0 drwxr-xr-x 2 员工 64 Jun 12 15:44qtwebengine_locales

./libexec: total 0 drwxr-xr-x 2 staff 64 Jun 12 15:44 qtwebengine_locales

./libexec/qtwebengine_locales:

./libexec/qtwebengine_locales:

./plugins: total 0 drwxr-xr-x 2 工作人员 64 Jun 12 15:45承载 drwxr-xr-x 2 工作人员 64 六月 12 15:45 iconenginesdrwxr-xr-x 2 工作人员 64 Jun 12 15:45 imageformatsdrwxr-xr-x 2 名员工 64 Jun 12 15:45 平台 drwxr-xr-x2 位员工 64 Jun 12 15:45 样式

./plugins: total 0 drwxr-xr-x 2 staff 64 Jun 12 15:45 bearer drwxr-xr-x 2 staff 64 Jun 12 15:45 iconengines drwxr-xr-x 2 staff 64 Jun 12 15:45 imageformats drwxr-xr-x 2 staff 64 Jun 12 15:45 platforms drwxr-xr-x 2 staff 64 Jun 12 15:45 styles

./plugins/bearer:

./plugins/bearer:

./plugins/iconengines:

./plugins/iconengines:

./plugins/imageformats:

./plugins/imageformats:

./plugins/platforms:

./plugins/platforms:

./plugins/styles:

./plugins/styles:

./资源:

./translations: total 0 drwxr-xr-x 2 名员工 64 Jun 1215:44 qtwebengine_locales

./translations: total 0 drwxr-xr-x 2 staff 64 Jun 12 15:44 qtwebengine_locales

./translations/qtwebengine_locales:

./translations/qtwebengine_locales:

推荐答案

有同样的错误.由 100% 卸载 Android Studio 解决.不确定哪些文件是罪魁祸首.每个帖子都删除了所有这些.我还将目录更改为根文件系统 / 并搜索与 Android 相关的文件并删除这些文件 find .-名称*android*">~/Desktop/files.txt.

Had same error. Resolved by 100% uninstalling Android Studio. Not sure which files specifically were culprit. Removed all of them per post. I also changed directory to root file system / and searched for Android related files and removed those as well find . -name "*android*" > ~/Desktop/files.txt.

这篇关于M1 芯片(苹果芯片)模拟器上的 Android studio Arctic Fox beta 3 无法启动:“AVD 'myAvdName' 的模拟器进程已终止."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆