当我尝试运行该应用程序或重新构建它时,出现以下错误。
(我正在尝试在新的 Android Studio 和 SDK 中运行或重建旧项目)
警告:将新的 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 警告:映射新 ns http://schemas.android.com/sdk /android/repo/addon2/02到旧的 ns http://schemas.android.com/sdk/android/repo/addon2/01 警告:映射新的 ns http://schemas.android.com/sdk/android/repo /repository2/02到旧的 ns http://schemas.android.com/sdk/android/repo/repository2/01 警告:映射新的 ns http://schemas.android.com/sdk/android/repo/sys-img2 /02到旧的 ns http://schemas.android.com/sdk/android/repo/sys-img2/01
我的构建 Gradle 如下所示;
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'
}
}
} …Run Code Online (Sandbox Code Playgroud)