昨天模拟器运行得很好。系统镜像为arm64-v8a。我不太记得工作系统映像的版本名称,但是昨天我接受了 ARM 64 系统映像的更新,版本名称是“S”。
我可以从 AVD 管理器启动模拟器,当我按“运行应用程序”按钮时模拟器也会启动,但是,该应用程序未加载到模拟器上,并且如果我通过“adb devices”检查或者如果我单击“设备连接疑难解答”,它显示:
“emulator-5554 - 设备当前处于离线状态”
我已经尝试了 StackOverflow 上找到的大部分建议,例如:
AVD:
Name: Pixel_4_API_S
CPU/ABI: Google Play ARM (arm64-v8a)
Path: ~/.android/avd/Pixel_4_API_S.avd
Target: google_apis_playstore [Google Play] (API level S)
Skin: pixel_4
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_4
hw.lcd.width: 1080
image.androidVersion.codename: S
hw.initialOrientation: Portrait
image.androidVersion.api: 29
tag.id: google_apis_playstore
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel 4 API S
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: true
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 2280
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images/android-S/google_apis_playstore/arm64-v8a/
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_4_API_S
hw.lcd.density: 440
hw.arc: false
hw.device.hash2: MD5:6b5943207fe196d842659d2e43022e20
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google Play
runtime.network.latency: none
disk.dataPartition.size: 6442450944
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
知道出了什么问题吗?或者说如何解决这个问题呢?
将您下载的 avd 系统映像替换为 r02 映像。 r03 对我来说已经坏了,但恢复到 r02 挽救了这一天!
Update:看来 r03、r04 和 r05 都不适用于 m1
Google Play ARM 64 v8a 系统映像(修订版:2) https://dl.google.com/android/repository/sys-img/google_apis_playstore/arm64-v8a-S_r02-darwin.zip
Google API ARM 64 v8a 系统映像(修订版:2) https://dl.google.com/android/repository/sys-img/google_apis/arm64-v8a-S_r02.zip
对于 macOS 上最新的 android (4.1.3),您想要放置解压图像的目录可能类似于~/Library/Android/sdk/system-images/android-S
.
例如,google play图片的路径是~/Library/Android/sdk/system-images/android-S/google_apis_playstore/arm64-v8a
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)