【发布时间】:2019-11-06 22:49:30
【问题描述】:
当我尝试在 Flutter 应用中与 API 集成时,出现错误“Program linking failed”
日志
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
D/EGL_emulation( 7612): eglMakeCurrent: 0xe30bcb00: ver 3 1 (tinfo 0xe3610f50)
D/skia ( 7612): Program linking failed.
I/chatty ( 7612): uid=10086(com.example.on_demand_customer) 1.gpu identical 9 lines
D/skia ( 7612): Program linking failed.
D/skia ( 7612): Program linking failed.
D/skia ( 7612): Program linking failed.
D/skia ( 7612): Program linking failed.
D/skia ( 7612): Program linking failed.
D/skia ( 7612): Program linking failed.
D/skia ( 7612): Program linking failed.
E/flutter ( 7612): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = 192.168.2.20, port = 42460
【问题讨论】:
-
嗨@Pro_Jey.Welcome to SO :)。您能否提供有关您面临的问题的更多信息,例如哪个 API,如果可能的话,实现代码(删除任何私人信息),并尝试使用 Formatting 使问题更具可读性。
-
嗨,@magic_man 我的代码没有任何错误,因为在 Ubuntu 中我的代码运行良好。当我尝试在 Windows 10 中运行我的代码时,只会出现错误,它的意思是“D/skia (7612): Program linking failed”。
-
this 是否可以帮助您或以其他方式解释您的问题?
-
你能告诉我们
flutter doctor -v的结果吗? -
是的,我已经修复了这个错误,这是一个代理错误,感谢您的回复@Muldec
标签: android api http flutter dart