flutter - Flutter 构建发布 apk 没有健全的 null 安全性?
问题描述
调试 apk 工作正常,发布 apk 不工作..
尝试了颤振构建 apk --no-sound-null-safety 它构建了发布 apk 但不起作用。
解决方案
问题解决!!实际上,问题出在“http”,因为管理面板中没有包含 SSL 证书,因此,
Bad state: Insecure HTTP is not allowed by platform
在我的 Mi note4 手机中运行时,应用程序在某些设备上显示错误。
在标签内的文件中
添加
android:usesCleartextTraffic="true"
了行
AndroidManifest.xml
<manifest <application android:usesCleartextTraffic="true""> </application> </manifest>
推荐阅读
- python - 在列表中合并元组 - Spacy Trainset 相关
- mysql - 如何在 Hive 或 Spark 中的 GROUP BY 之后将 INNER JOIN 函数聚合到每个组
- roblox - 使用 Terrain:FillRegion() 的区域不能为空错误?
- hyperlink - 链接到位于另一个页面中的锚点/ID
- python - 如何使用 contractDetails() 中的值更新函数 tickPrice() 的参数?
- scala - 解压缩存储在 Azure ADLS Gen2 中的 .Z 文件
- java - 如何在 build.gradle 中选择版本
- c++ - 两个线程一个使用流 Api,另一个线程 CreateFile 失败并出现错误 ERROR_SHARING_VIOLATION
- html - 仅更改移动屏幕的标题背景
- clojure - 使用 lein-ring 并将处理程序包装在函数中时,防伪令牌无效?