启动的时候报错:The emulator process for AVD Pixel_API_19 has terminated.

等等,我好像知道答案了,但这个没发删除

举报· 932 次点击
登录 注册 站外分享
8 条回复  
nnegier 楼主 小成 2025-3-14 00:38:48
答案就是不行。 ~/Library/Logs/Google/AndroidStudio2024.2/idea.log ``` 2025-03-14 00:15:51,164 [ 894001] INFO - Emulator: Pixel API 19 - /Users/duanxuebin/Library/Android/sdk/emulator/emulator -netdelay none -netspeed full -avd Pixel_API_19 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300 2025-03-14 00:15:51,192 [ 894029] INFO - Emulator: Pixel API 19 - PANIC: CPU Architecture 'arm' is not supported by the QEMU2 emulator, (the classic engine is deprecated!) 2025-03-14 00:15:51,192 [ 894029] INFO - Emulator: Pixel API 19 - Android emulator version 35.4.9.0 (build_id 13025442) (CL:N/A) 2025-03-14 00:15:51,192 [ 894029] INFO - Emulator: Pixel API 19 - Graphics backend: gfxstream 2025-03-14 00:15:51,193 [ 894030] INFO - Emulator: Pixel API 19 - Process finished with exit code 1 2025-03-14 00:15:51,193 [ 894030] WARN - Emulator: Pixel API 19 - Emulator terminated with exit code 1 2025-03-14 00:15:52,171 [ 895008] WARN - #com.android.sdklib.deviceprovisioner.DeviceAction - The emulator process for AVD Pixel_API_19 has terminated. com.android.tools.idea.avdmanager.EmulatorConnectionListener$EmulatorTerminatedException: The emulator process for AVD Pixel_API_19 has terminated. at com.android.tools.idea.avdmanager.EmulatorConnectionListener$WaitForEmulatorTask.run(EmulatorConnectionListener.java:93) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$1.run(AnyThreadWriteThreadingSupport.kt:134) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:32) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Unknown Source) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) ```
nnegier 楼主 小成 2025-3-14 00:39:18
然后改了下 x86 ,当然这样更不行了 ``` 2025-03-14 00:34:07,823 [1990660] INFO - Emulator: Pixel API 19 - /Users/duanxuebin/Library/Android/sdk/emulator/emulator -netdelay none -netspeed full -avd Pixel_API_19 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300 2025-03-14 00:34:07,850 [1990687] INFO - Emulator: Pixel API 19 - Android emulator version 35.4.9.0 (build_id 13025442) (CL:N/A) 2025-03-14 00:34:07,850 [1990687] INFO - Emulator: Pixel API 19 - PANIC: Avd's CPU Architecture 'x86' is not supported by the QEMU2 emulator on aarch64 host. 2025-03-14 00:34:07,850 [1990687] INFO - Emulator: Pixel API 19 - Graphics backend: gfxstream 2025-03-14 00:34:07,850 [1990687] INFO - Emulator: Pixel API 19 - Found systemPath /Users/duanxuebin/Library/Android/sdk/system-images/android-19/default/x86/ 2025-03-14 00:34:07,851 [1990688] INFO - Emulator: Pixel API 19 - Process finished with exit code 1 2025-03-14 00:34:07,851 [1990688] WARN - Emulator: Pixel API 19 - Emulator terminated with exit code 1 ```
nnegier 楼主 小成 2025-3-14 00:52:46
在 Mac 只能正常运行 arm64 的镜像
nnegier 楼主 小成 2025-3-14 01:22:10
总结就是因为我的 Mac 是 arm64‘s host ,所以只能运行 arm64 的 ABI ,而 Android 19 我在 Images 列表中没有看到这个 ABI 的 Image ,所以我的电脑是没法用 AndroidStudio 运行的。如果用 Windows 或者 x86 的 Mac 应该是可以运行 x86 镜像的。
nnegier 楼主 小成 2025-3-14 01:24:37
@nnegier 也许也不行,除非系统是 32 位的,因为我看到 ABI 都是 x86 ,不是 x86_64 。
liyafe1997 小成 2025-3-14 02:15:22
@nnegier 应该是,老的安卓都是有 armv7 abi 的,Mac 别说系统,硬件都是纯 ARM64 ,不兼容 32 位的 armv7 。不过按理说,Android Studuio/SDK 应该要 Fallback 到纯软件模拟的方案?类似在 x86 host 下跑 ARM 镜像那样。
liyafe1997 小成 2025-3-14 02:17:56
PANIC: CPU Architecture 'arm' is not supported by the QEMU2 emulator, (the classic engine is deprecated!) PANIC: Avd's CPU Architecture 'x86' is not supported by the QEMU2 emulator on aarch64 host. 这应该就是因为不支持 32 位 ARM 和 X86 了,这套 QEMU 配置为只能跑 aarch64 虚拟 CPU ,应该是只能用苹果那个虚拟机 API 来跑。 试试用 Rosetta 跑 x86 版的模拟器?
nnegier 楼主 小成 2025-3-14 03:05:38
@liyafe1997 是的,按理说 QEMU 是可以模拟运行 x86 的镜像的,我刚刚用 UTM ( QEMU 的 UI 界面软件)试了一下 Android 4.4 x86 的 Live (未安装,那个安装太麻烦了,暂时没耐心了),结论是:能运行,但很慢。我也不知道 AndroidStudio 为什么自动判断一下然后采用模拟的方案,虽然慢,但是能用也是很好的事呀。
返回顶部