Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns解决方法

Posted xiangzhihong8

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns解决方法相关的知识,希望对你有一定的参考价值。

在运行Flutter应用程序时,调试控制台中打印了如下错误:

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: 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/addon2/03 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/repository2/03 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/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/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/01

上述错误是,将新 ns 映射到旧 ns,可以尝试删除并重新安装 SDK 平台。根本的解决方案是升级gradle。首先,打开gradle-wrapper.properties,修改gradle版本。

distributionUrl=https\\://services.gradle.org/distributions/gradle-7.2-all.zip

然后,再修改android/build.gradle。

dependencies 
    classpath 'com.android.tools.build:gradle:7.0.4'

以上是关于Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns解决方法

Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns解决方法

NDN实验ndnSIM 2.0: A new version of the NDN simulator for NS-3 全文翻译

一个请求和多个servlet-mapping匹配,会去执行哪个servlet???

[elasticsearch]ES迁移笔记

将 datetime64[ns] 索引转换为日期 pandas 以进行比较