Gradle DSL 方法不是 found:comple()

Gradle DSL method not found:comple()

我是 android 编码的新手,正在尝试将 youtube API 添加到我的应用程序。但是我一直在点击这个 error.I 已经尝试了其他链接的解决方案但是我无法解决 issue.Can 有人帮我吗?

我的应用->build.gradle 看起来像这样

apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
    applicationId "com.example.vidhya.youtubeplayer"
    minSdkVersion 11
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
comple files('libs/YouTubeAndroidPlayerApi.jar')
}

我的 gradle->build.gradle 看起来是这样的

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

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.2.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}    }

allprojects {
repositories {
    jcenter()
}
}

我做错了什么?请帮忙。

改变

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    comple files('libs/YouTubeAndroidPlayerApi.jar')
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile files('libs/YouTubeAndroidPlayerApi.jar')
}