use*_*121 10 android android-studio
我将 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
构建.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
}
Run Code Online (Sandbox Code Playgroud)
}
小智 3
在导入旧项目然后更新我的依赖项时,我遇到了同样的问题。我通过将 buildToolsVersion 从 30.0.2 更新到 30.0.3 解决了这个问题。知道这已经很旧了,但也许它会让某人免去一点头痛。
| 归档时间: |
|
| 查看次数: |
1192 次 |
| 最近记录: |