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'
}
`
2
Answers
Try deleting and reinstalling the SDK platforms.
Delete the folders in
if you are Linux user:
if you are Windows user:
and download the SDKs you need.
Try upgrading your Gradle plugin to the latest one.
path/to/your/flutter_app/android/build.gradle
and inside thedependencies block in
buildscript
you have to update your oldbuild Gradle to the latest one.
path/to/your/flutter_app/android/gradle/wrapper/gradle-wrapper.properties
file to the same version you updated toflutter clean