Upon returning to my android project after a few years, I get the above error.
我的建筑文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = 1.6.0
repositories {
google()
}
dependencies {
classpath com.android.tools.build:gradle:4.2.1
//classpath com.github.dcendents:android-maven-gradle-plugin:1.5
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url https://jitpack.io }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
And here s some output:
> Could not resolve all files for configuration :classpath .
> Could not find com.github.dcendents:android-maven-gradle-plugin:2.1.
Searched in the following locations:
I d have added all the output, but I m limited to 30000 characters. Let me know if you need more output.
事先得到任何援助。