PIXP
PIXP

Reputation: 2482

Gradle sync failed: Could not find method Dependencies() for arguments

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

Upvotes: 0

Views: 8514

Answers (2)

Ezio
Ezio

Reputation: 2985

Use dependencies (with small d) instead of Dependencies

Upvotes: 4

user9271802
user9271802

Reputation:

change Dependencies to dependencies

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

Upvotes: 0

Related Questions