android - Flutter iOS 设备 : Error connecting to the service protocol: failed to connect to http://127. 0.0.1:1024

标签 android flutter

在 Android Studio 中使用 Flutter 连接到真实 iOS 设备时出现问题。

"Error connecting to the service protocol: failed to connect to http://127.0.0.1:1024"

搜索并重新启动设备,切换到主 channel 似乎没有帮助。

flutter doctor 显示

[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76,
    locale en-US) 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)

最佳答案

  1. 打开 ios/Runner.xcworkspace/,清理构建目录

enter image description here

  • 我也重新启动了手机,但不确定是否有必要。
  • 关于android - Flutter iOS 设备 : Error connecting to the service protocol: failed to connect to http://127. 0.0.1:1024,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60916385/

    相关文章:

    android - 将 kotlin 协程与 room 一起使用

    dart - 从 JSON 中获取数据并添加到 initState() 上的列表中

    flutter - 在条件下在列表中显示小部件的漂亮方法

    flutter - 如何在 flutter 中保存时间线事件列表?

    flutter - 每当键盘打开或关闭时,我的 flutter 应用程序就会重建

    android - 是否有可以处理最新 Android 版本的 Android 开发板?

    android - 当我们滚动时,RecyclerView 如何从 Adapter 获取 1 个额外的 View

    java - 从 PRAGMA table_info() 获取名称和类型

    android - 跨平台数据同步

    android - 如何在flutter中制作依赖的多级DropDown?