【发布时间】:2021-10-06 06:22:29
【问题描述】:
升级到 Flutter 2.5 时出现错误-
W/FlutterActivityAndFragmentDelegate( 4070): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
第一次构建应用程序时。
做了一些研究,我发现原因是 AndroidManifest.xml
For those who have difficulty finding this the path is -Your_app\android\app\src\main\AndroidManifest.xml
AndroidManifest.xml 突出显示了一些字段并建议了一些没有要实现的字段的解决方案,无论如何我已经添加了一些建议的字段,我可以为其放置参数,例如 - (实际上这些与 True/False 一起使用)
android:allowBackup , android:exported
然后这些就消失了,但是对于那些,我不知道争论是什么,仍然在错误/建议中。
建议
在哪里可以找到填写这些字段的指南? 我在哪里可以设置 API 级别?我已经设置了 minSdkVersion 24。
【问题讨论】:
-
project/android/app/build.gradle insdide defaultConfig 这里定义了你的 sdk 版本
-
@AwiasRehman 我的问题不在于我提到的已经是 24(最低)的 SDK 版本。
标签: android flutter android-manifest