简体   繁体   English

Flutter 应用程序在使用 flutter build apk --split-per-abi --no-sound-null-safety 构建后未从 REST API 获取任何数据

[英]Flutter app not fetching any data from REST API after building it with flutter build apk --split-per-abi --no-sound-null-safety

I ran the command我运行命令

 flutter build apk --split-per-abi --no-sound-null-safety

to reduce the size of the apk (73MB -> 6 MB).减小 apk 的大小(73MB -> 6 MB)。 But now the app is not fetching any data.但是现在该应用程序未获取任何数据。 What could be the reason?可能是什么原因?

The app is just showing loading screen infinitely.该应用程序只是无限地显示加载屏幕。

You need to add the inte.net permission in AndroidManifest.xml需要在AndroidManifest.xml中添加inte.net权限

<uses-permission android:name="android.permission.INTERNET" />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 flutter build apk --split-per-abi 失败 - flutter build apk --split-per-abi fails flutter build apk --split-per-abi: app-armeabi-v7a-release.apk 和 app.apk 有什么区别 - flutter build apk --split-per-abi: what is the difference between app-armeabi-v7a-release.apk and app.apk 使用 --no-sound-null-safety Flutter 生成 App Bundle - Generate App Bundle with --no-sound-null-safety Flutter Flutter:构建 APK 后,API 中的数据不会出现 - Flutter: After build APK, data from API doesn't appear 我的颤振应用程序没有从 release.apk 中的 api 获取数据,而是在调试模式下工作 - My flutter app not fetching data from api in release.apk but works in debug mode Flutter 在将 flutter 应用程序迁移到 AndroidX 后卡在安装 build\app\outputs\apk\app.apk - Flutter stuck at Installing build\app\outputs\apk\app.apk after migrating flutter app to AndroidX “flutter build apk”没有构建所有必要的 pub 包,即使这些包在我的 flutter 应用程序中使用 - “flutter build apk” is not building all necessary pub packages even those packages are used in my flutter app 从 REST API 实时更新 flutter 应用程序数据 - Updating flutter app data from REST API in real-time 为 flutter 应用构建 apk 文件时出现问题 - Problem on building apk file for flutter app 错误:无法以健全的 null 安全运行,因为以下依赖项不支持 null 安全; 在 flutter - Error: Cannot run with sound null safety, because the following dependencies don't support null safety; in flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM