Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

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

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@[email protected] (040700-294335909):22)
        at ahnl.b(:com.google.android.gms@[email protected] (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。

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

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

哎,心好累。

感觉想放弃了!!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

先解决第一个出现的问题:
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地址。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...