警告flutter构建apk命令输入

发布于 2025-01-23 03:24:57 字数 1043 浏览 0 评论 0原文

当我运行时,flutter构建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).

When I run Flutter build apk command the terminal gives me a warning. But apk file generated successfully. Do you have any idea to how to solve this warning?
Here is my terminal output:

 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).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你另情深 2025-01-30 03:24:57

只需使用新Android将Android Gradle插件版本从4.1.0更新为7.0.2

Just update the Android Gradle Plugin version from 4.1.0 to 7.0.2 using new android
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文