0

完整错误:

Gradle sync failed: Could not find method Dependencies() for arguments [build_aewao5k4tyewg69imdynjiuxi$_run_closure1$_closure3@7c332105] on object of type org.gradle.api.internal.initialization.DefaultScriptHandler.

顶级 build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }

   Dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}
4

2 回答 2

4

使用dependencies(with small d) 代替Dependencies

于 2018-01-27T10:42:20.287 回答
0

将依赖项更改为依赖项

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
}
于 2018-01-27T10:52:50.733 回答