Gradle sync failed: Could not find method Dependen

2019-08-20 03:55发布

Full error:

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.

Top level 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'
    }
}

2条回答
相关推荐>>
2楼-- · 2019-08-20 04:22

Use dependencies (with small d) instead of Dependencies

查看更多
男人必须洒脱
3楼-- · 2019-08-20 04:29

change Dependencies to dependencies

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
}
查看更多
登录 后发表回答