使设备模拟器-5554脱机 [英] Getting Device emulator-5554 is offline

查看:169
本文介绍了使设备模拟器-5554脱机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法快速运行Android应用.获取设备模拟器-5554处于脱机状态.自从我使用M1以来,我一直认为这可能是模拟器的问题,但它在2天前就可以正常工作,并且在升级后一切都停止了.

Cannot run Android app on flutter. Getting Device emulator-5554 is offline. I'm thinking it could be and emulator issue since I'm on M1 but it worked 2 days ago and after a flutter upgrade everything stopped.

  1. 杀死亚行
  2. 删除模拟器
  3. 冷启动模拟器
  4. 擦除模拟器
  5. 其他问题答案不起作用

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 2.2.0-10.1.pre, on macOS 11.2.1 20D74 darwin-arm,
    locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)
    ! Device emulator-5554 is offline.

推荐答案

我刚刚回答了这个问题- https://stackoverflow.com/a/67261231/705198

I just answered this - https://stackoverflow.com/a/67261231/705198

将已下载的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!

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

这篇关于使设备模拟器-5554脱机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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