当我尝试在windows上运行这个命令时:
emulator.exe -avd android13
如果android13是arm64,我收到错误:
INFO | Android emulator version 31.3.13.0 (build_id 9189900) (CL:N/A)
emulator: INFO: Found systemPath c:UserszeusAppDataLocalAndroidSdksystem-imagesandroid-33google_apisarm64-v8a
PANIC: Avd's CPU Architecture 'arm64' is not supported by the QEMU2 emulator on x86_64 host.
我用的是windows 10。如何运行arm64 cpu架构的AVD ?
在x86_64
主机上的ARM64仿真目前只可能达到API级别27 Oreo:
#ifdef __x86_64__
if (sarch == "arm64" && apiLevel >=28) {
APANIC("Avd's CPU Architecture '%s' is not supported by the QEMU2 emulator on x86_64 host.n", avdarch);
}
#endif
你需要ARM64 CPU来运行android-33
:
#if defined(__aarch64__)
if (sarch != "arm64") {
APANIC("Avd's CPU Architecture '%s' is not supported by the QEMU2 emulator on aarch64 host.n", avdarch);
}
#endif