首页 > 解决方案 > 在颤振应用程序中集成 API 会出现错误“程序链接失败”

问题描述

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

标签: androidapihttpflutterdart

解决方案


这只是一个代理错误,只有当您的服务器和 android studio 与代理连接并且您的电脑没有与代理连接时才会发生,那么只有您会收到这样的错误

[1]:https ://i.stack.imgur.com/Xp8FD.pngenter code here


推荐阅读