如何解决“无法找到方法implemtatation()”错误?

时间:2019-02-05 15:44:20

标签: android-studio android-gradle

我正在开发一个AndroidStudio项目,但无法使用de 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
}

1 个答案:

答案 0 :(得分:0)

检查模块(不是顶层文件)中的build.gradle
dependencies块中有一个错字。

您使用的是implemtatation而不是implementation