Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mapping new ns to old ns

I updated Android Studio to 4.2.1 and delete jcentor.I had a warning like this when build the project.I don't understand the means of these URL and how to fix it

Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01

Mapping new ns http://schemas.android.com/repository/android/generic/02 to old 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
}

}

like image 296
user15997121 Avatar asked May 22 '21 03:05

user15997121


People also ask

How do I change my buildToolsVersion?

If you want to change the Build Tools version in your project, that is specified in project's build. gradle file (in the 'app' module). Open the file and either add or update the Build Tools version you want to use by adding/updating the following property in the 'android' section: android { buildToolsVersion "27.0.


1 Answers

I had this same problem when importing an old project, then updating my dependencies. I solved it by updating my buildToolsVersion from 30.0.2 to 30.0.3 Know that this is old, but maybe it will save someone a little headache.

like image 115
Matt Graves Avatar answered Oct 24 '22 06:10

Matt Graves