0

I'm following the java quickstart tutorial (here) and I am stuck at step 3.7 and I am given the error

"Could not find method compile() for arguments [com.google.api-client:google-api-client:1.23.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler."

in the build.gradle file which contains `

apply plugin: 'java'
apply plugin: 'application'

mainClassName = 'ApiExample'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.0'

repositories {
    mavenCentral()
}

dependencies {
    compile 'com.google.api-client:google-api-client:1.23.0'
    compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
    compile 'com.google.apis:google-api-services-youtube:v3-rev222-1.25.0'
}

Help would be appreciated!

0 Answers0