【问题标题】:Mapping new ns to old ns将新 ns 映射到旧 ns
【发布时间】:2021-08-11 05:03:32
【问题描述】:

我将 Android Studio 更新到 4.2.1 并删除了 jcentor。我在构建项目时收到了这样的警告。我不明白这些 URL 的含义以及如何修复它

将新 ns http://schemas.android.com/repository/android/common/02 映射到旧 ns http://schemas.android.com/repository/android/common/01

将新 ns http://schemas.android.com/repository/android/generic/02 映射到旧 ns http://schemas.android.com/repository/android/generic/01

build.gradle

buildscript {
ext.kotlin_version = "1.5.0"
repositories {
    google()
    mavenCentral()
}
dependencies {
    classpath "com.android.tools.build:gradle:4.2.1"
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    在导入旧项目,然后更新我的依赖项时,我遇到了同样的问题。 我通过将 buildToolsVersion 从 30.0.2 更新到 30.0.3 来解决它 知道这是旧的,但也许它会让人有点头疼。

    【讨论】:

    • 你的回答把我带到了这个answer关于如何做你所说的事情。
    • 这个答案解决了我同样的问题。我认为提问者应该将其作为答案
    猜你喜欢
    • 2021-10-06
    • 2021-06-17
    • 2021-11-17
    • 2021-10-17
    • 2022-07-14
    • 2022-10-25
    • 1970-01-01
    • 2021-10-27
    • 2023-04-05
    相关资源
    最近更新 更多