当我尝试在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

最佳答案

这只是一个代理错误,只有当你的服务器和Android Studio与代理连接,而你的电脑没有与代理连接时,才会发生这样的错误。
[1]:https://i.stack.imgur.com/Xp8FD.pngenter code here

10-08 15:01