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

问题描述 投票:0回答:1

我工作在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
}
android-studio android-gradle
1个回答
0
投票

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

您正在使用implemtatation代替implementation

© www.soinside.com 2019 - 2024. All rights reserved.