flutter - 从 android studio 运行时 Flutter 在 iOS 设备上显示白屏
问题描述
我想在我的设备上测试实时应用程序,就像我可以在我的设备上进行更改并查看一样,但是当我通过 android studio 绿色运行按钮运行应用程序时,它只显示白屏并显示此消息
Still attempting to connect to the VM Service...
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 53666
This was attempt #50. Will retry in 0:00:01.600000.
如果我在 Xcode 上打开项目并从那里在设备上运行,那么它工作得很好,但我看不到那里的实时变化。我需要从 android studio 运行,这样我就可以对其进行测试,看看有没有人帮忙解决这个问题?
应用程序也没有任何 firebase 或 firestore 插件
解决方案
推荐阅读
- android - 如何从 appcenter 命令行和 Jenkins 将 IPA 和 APK 文件推送到 App Center Distribute
- android - jUnit 在 androidTest 文件夹中未找到,但在 test 文件夹中找到
- javascript - 当没有请求数字数据时,为什么 AJAX 会返回 NaN?
- python - 如何在python或R中均匀地生成一组半圆内的随机点?
- android - Firebase 异步任务到协程
- python - 获取给定 ASIN 的最低 4 个价格
- c# - 从接口动态创建对象并设置值
- winforms - 使拆分容器内的面板显得突出
- xquery - 如何在 marklogic 中使用 xquery 编写内容转换?
- android - 在 Android 中检索有关自定义属性的信息