'In Android Studio Giving Warning of Mapping New ns to old ns
When I trying to run the app or Rebuid it, Gives following errors.
(I m trying run or Rebuild old project in new Android Studio and SDK)
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/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/01
My Build Gradle is Like following;
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
defaultConfig {
applicationId "com.etas.etas"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
//noinspection GradleDependency
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/jtds-1.2.7.jar')
implementation files('libs/ksoap.jar')
implementation 'com.android.support:appcompat-v7:30.2'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.android.support:design:30.2'
implementation 'com.google.firebase:firebase-appindexing:20.0.0'
implementation 'com.android.support:support-v4:30.2'
}
`
Solution 1:[1]
Try upgrading your Gradle plugin to the latest one.
- Go to
path/to/your/flutter_app/android/build.gradleand inside the dependencies block inbuildscriptyou have to update your old build Gradle to the latest one. - Also update Gradle distributionUrl in
path/to/your/flutter_app/android/gradle/wrapper/gradle-wrapper.propertiesfile to the same version you updated to - Clean your flutter project using
flutter clean - Run your project again
Solution 2:[2]
Try deleting and reinstalling the SDK platforms.
Delete the folders in
if you are Linux user:
~/Android/Sdk/platforms
if you are Windows user:
C:\Users\USERNAME\AppData\Local\Android\Sdk
and download the SDKs you need.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Amr Wael |
| Solution 2 | MoriX Mehrdad |
