答案就是不行。
~/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)
```
然后改了下 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
```
总结就是因为我的 Mac 是 arm64‘s host ,所以只能运行 arm64 的 ABI ,而 Android 19 我在 Images 列表中没有看到这个 ABI 的 Image ,所以我的电脑是没法用 AndroidStudio 运行的。如果用 Windows 或者 x86 的 Mac 应该是可以运行 x86 镜像的。
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 版的模拟器?