ale*_*lex 38 android android-emulator android-studio avd-manager apple-m1
昨天模拟器运行良好。系统映像是 arm64-v8a。我不太记得工作系统映像的发行版名称,但是,昨天我接受了 ARM 64 系统映像的更新,发行版名称是“S”。
我可以从我的 AVD 管理器启动模拟器,当我按下“运行应用程序”按钮时,模拟器也会启动,但是,应用程序没有加载到模拟器上,如果我通过“adb 设备”检查或者如果我单击“对设备连接进行故障排除”,它显示:
“emulator-5554 - 设备当前处于离线状态”
我已经尝试了在 StackOverflow 上找到的大部分建议,例如:
adb kill-server, adb start-server
删除并重新创建 AVD 设备
使缓存无效/重新启动
在模拟器内启用 USB 调试
从 AVD 管理器擦除数据和冷启动
我正在使用Android Studio 4.1.3
构建 #AI-201.8743.12.41.7199119,构建于 2021 年 3 月 10 日运行时版本:1.8.0_242-release-1644-b3-6915495 x86_64 VM:JetBrains 的 OpenJDK 64 位服务器 VM,ParNew macOS MemorycurrentMark1Sro :ParNew macOS MemorycurrentMark0sro :1981M 核心:8 注册表:ide.new.welcome.screen.force=true,external.system.auto.import.disabled=true 非捆绑插件:org.jetbrains.kotlin
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
Run Code Online (Sandbox Code Playgroud)
知道出了什么问题吗?或者如何解决这个问题?
And*_*wPK 89
将您下载的 avd 系统映像替换为 r02 映像。r03 对我来说坏了,但恢复到 r02 挽救了这一天!
更新:看来 r03、r04 和 r05 都不适用于 m1
Google Play ARM 64 v8a 系统映像(修订版:2)
Google API ARM 64 v8a 系统映像(修订版:2)
在 macOS 上使用最新的 android (4.1.3),您想要放置解压缩图像的目录可能类似于~/Library/Android/sdk/system-images/android-S
.
例如,谷歌播放图片的路径是 ~/Library/Android/sdk/system-images/android-S/google_apis_playstore/arm64-v8a
Tat*_*uno 11
如果您不使用API级别S,您可以尝试以下操作:(我的API级别是31)
从这里下载
新建一个文件夹,如下图所示,将下载的文件解压并放入新文件夹中
小路:
/Users/<Username>/Library/Android/sdk/system-images/android-S/google_apis_playstore/arm64-v8a
启动 Android Studio 并单击配置 > AVD 管理器
单击创建虚拟设备...,选择任何设备,按下一步按钮并确认已添加 API 级别 S。
归档时间: |
|
查看次数: |
8432 次 |
最近记录: |