输入 flutter build apk 命令时发出警告
Warning when flutter build apk command entered
当我 运行 Flutter build apk
命令时,终端会给我一个警告。但是apk文件生成成功。您知道如何解决此警告吗?
这是我的终端输出:
Building with sound null safety
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Running Gradle task 'assembleRelease'... 103.1s
√ Built build\app\outputs\flutter-apk\app-release.apk (16.3MB).
只需使用新 android 将 Android Gradle 插件版本从 4.1.0 更新到 7.0.2
当我 运行 Flutter build apk
命令时,终端会给我一个警告。但是apk文件生成成功。您知道如何解决此警告吗?
这是我的终端输出:
Building with sound null safety
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Running Gradle task 'assembleRelease'... 103.1s
√ Built build\app\outputs\flutter-apk\app-release.apk (16.3MB).
只需使用新 android 将 Android Gradle 插件版本从 4.1.0 更新到 7.0.2