android - 在颤振应用程序中集成 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
解决方案
这只是一个代理错误,只有当您的服务器和 android studio 与代理连接并且您的电脑没有与代理连接时才会发生,那么只有您会收到这样的错误
[1]:https ://i.stack.imgur.com/Xp8FD.pngenter code here
推荐阅读
- spring-boot - 多个用户的单个 Spring Boot 应用程序工作
- security - WinAppDriver 是否提供任何身份验证机制和/或 HTTPS 连接?
- vue.js - 如何在 Nuxt 和 Axios 代理中添加默认参数?
- python - 获取由 pyppeteer 呈现的页面发送的请求的 URL
- netlogo - 如何在 NetLogo 中一次杀死所有乌龟?
- python-3.x - 是否可以在 MDDialog 中包含 MDButtons 而无需从主应用程序添加按钮
- reactjs - 我需要一个带有树组件和“内容”窗格的 React 组件
- java - 如何允许用户使用远程输入回复多个通知,就像 whatsapp 一样?
- python - 重新同步 InfluxDB 值的时间戳
- c# - 如何在任意目标和参数上调用 MethodInfo 对象?