上次更新 a​​rm64-v8a 后,模拟器在 M1 Mac 上脱机 [英] Emulator appearing offline on M1 Mac after the last update of arm64-v8a

查看:39
本文介绍了上次更新 a​​rm64-v8a 后,模拟器在 M1 Mac 上脱机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天模拟器运行良好.系统映像是 arm64-v8a.我不太记得工作系统映像的发行版名称,但昨天我接受了 ARM 64 系统映像的更新,发行版名称为S".

Yesterday the emulator was working perfectly. The system image was arm64-v8a. I don't exactly remember the Release name of the working system image but, yesterday there was an update for the ARM 64 system image which I accepted and the release name is "S".

我可以从我的 AVD 管理器启动模拟器,当我按下运行应用程序"按钮时,模拟器也会启动,但是,应用程序未加载到模拟器上,如果我通过adb 设备"检查,模拟器将显示为离线;或者如果我点击设备连接疑难解答"它显示:

I can start the emulator from my AVD Manager, the emulator also starts when I press the 'Run app' button however, the app isn't loaded on the emulator and the emulator appears offline if I check through "adb devices" or if I click on "Troubleshoot Device connections" it shows:

emulator-5554 - 设备当前处于离线状态"

"emulator-5554 - Device is currently in the offline state"

我已经尝试了 StackOverflow 上的大部分建议,例如:

I have tried most of the suggestions found on StackOverflow like:

  • adb kill-server, adb start-server

  • adb kill-server, adb start-server

删除并重新创建 AVD 设备

Remove and re-create AVD device

使缓存无效/重新启动

在模拟器内启用 USB 调试

Enable USB debugging inside the emulator

从 AVD 管理器擦除数据和冷启动

Wipe data and cold boot from AVD manager

我使用的是 Android Studio 4.1.3

Build #AI-201.8743.12.41.7199119,建于2021年3月10日运行时版本:1.8.0_242-release-1644-b3-6915495 x86_64VM:JetBrains s.r.o 的 OpenJDK 64 位服务器 VMmacOS 10.16GC:ParNew、ConcurrentMarkSweep内存:1981M核心数:8注册表:ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true非捆绑插件:org.jetbrains.kotlin

Build #AI-201.8743.12.41.7199119, built on March 10, 2021 Runtime version: 1.8.0_242-release-1644-b3-6915495 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.16 GC: ParNew, ConcurrentMarkSweep Memory: 1981M Cores: 8 Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true Non-Bundled Plugins: 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

知道出了什么问题吗?或者如何解决这个问题?

Any idea what has gone wrong? Or how to tackle this issue?

推荐答案

将您下载的 avd 系统映像替换为 r02 映像.r03 对我来说坏了,但恢复到 r02 挽救了这一天!

Replace the avd system images you have downloaded with the r02 images. r03 is broken for me but reverting to r02 saved the day!

更新:看来 r03、r04 和 r05 都不适用于 m1

Update: It appears r03, r04, and r05 all don't work on 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.

With the latest android (4.1.3) on macOS, the directory you want to put the unzipped images in is probably something like ~/Library/Android/sdk/system-images/android-S.

比如google play图片的路径是~/Library/Android/sdk/system-images/android-S/google_apis_playstore/arm64-v8a

For example, the path for the google play image is ~/Library/Android/sdk/system-images/android-S/google_apis_playstore/arm64-v8a

这篇关于上次更新 a​​rm64-v8a 后,模拟器在 M1 Mac 上脱机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆