为什么flutter运行个示例就这么多坑,感觉要放弃了?

发布于 2022-09-12 14:04:24 字数 2600 浏览 12 评论 0

2021-01-05 21:03:26.546 2943-7174/? E/Uploader: Clearcut transport failed to make network request. Use 30080 milliseconds.
    java.net.SocketTimeoutException: failed to connect to play.googleapis.com/172.217.160.74 (port 443) from /10.0.2.16 (port 41708) after 30000ms
        at libcore.io.IoBridge.connectErrno(IoBridge.java:191)
        at libcore.io.IoBridge.connect(IoBridge.java:135)
        at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
2021-01-05 21:05:21.791 1902-1902/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2021-01-05 21:05:23.057 1904-1904/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe 
2021-01-06 20:41:14.797 2392-4340/com.google.android.gms.persistent E/NearbyDiscovery: DiscoveryNearbyMessagesManager failed to background unsubscribe [CONTEXT service_id=49 ]
    java.util.concurrent.TimeoutException: Timed out waiting for Task
        at atjq.a(:com.google.android.gms@200414022@20.04.14 (040700-294335909):22)
        at ahnl.b(:com.google.android.gms@200414022@20.04.14 (040700-294335909):5) 
2021-01-06 20:41:13.751 4059-4059/com.google.android.apps.messaging E/Bugle: EmojiCompat initialization failed
2021-01-06 20:41:13.751 4059-4059/com.google.android.apps.messaging E/Bugle: java.lang.RuntimeException: fetchFonts result is not OK. (2)
    at od.a(SourceFile:47)
    at oe.run(SourceFile:3)
2021-01-06 20:41:13.572 2392-2392/com.google.android.gms.persistent E/ActivityThread: Service com.google.android.gms.nearby.discovery.service.DiscoveryService has leaked IntentReceiver com.google.android.gms.nearby.discovery.service.DiscoveryChimeraService$GuardedIntentReceiver@3b06a82 that was originally registered here. Are you missing a call to unregisterReceiver()?
    android.app.IntentReceiverLeaked: Service com.google.android.gms.nearby.discovery.service.DiscoveryService has leaked IntentReceiver com.google.android.gms.nearby.discovery.service.DiscoveryChimeraService$GuardedIntentReceiver@3b06a82 that was originally registered here. Are you missing a call to unregisterReceiver()?
        at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1588)
        at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1368)
        at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1515)

android studio新建了个flutter application。

我只是想运行个示例,就这么多坑

百度几天没有结果。问了也没什么人告诉我。

哎,心好累。

感觉想放弃了!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

习ぎ惯性依靠 2022-09-19 14:04:24

先解决第一个出现的问题:
failed to connect to play.googleapis.com/172.217.160.74 (port 443) from /10.0.2.16 (port 41708)
确保能ping通 172.217.160.74 这个IP地址。

鲜肉鲜肉永远不皱 2022-09-19 14:04:24

============补充==================
有点莫名其妙。
前两天装了个vs code配置了一遍,好使了。
然后用android studio也好使了。。
可是我今天在打开,发现还是错误。
开始还是和 以前一样的问题。
然后我也没弄什么,就卡在

Launching lib\main.dart on Android SDK built for x86 in debug mode...
lib\main.dart:1
✓ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...

实在在弄不懂啊。真的要放弃吗!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文