我工作在Android Studio项目,我不能同步与d gradle这个项目。我有以下错误:
ERROR: Could not find method implemtatation() for arguments [project ':mapwize'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
我试图改变gradle这个版本,但没有奏效。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
检查您的模块build.gradle
(而不是顶层文件)。
有一个在dependencies
块一个错字。
您正在使用implemtatation
代替implementation
的