[英]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.