Android 未找到Gradle DSL方法:';comiple()';在放置gcm依赖项之后

Android 未找到Gradle DSL方法:';comiple()';在放置gcm依赖项之后,android,google-cloud-messaging,build.gradle,Android,Google Cloud Messaging,Build.gradle,一旦我提出了GCM的依赖性,我就面临着这个问题 错误:(50,0)找不到渐变DSL方法:“comiple()” 可能原因:“everybill代码库”项目可能使用的Gradle版本不包含该方法。 打开Gradle包装文件生成文件可能缺少Gradle插件。 应用Gradle插件 这是第50行的build.gradle文件 comiple 'com.google.android.gms:play-services-gcm:8.4.0' 我正在使用这些服务也从播放服务 compile 'com.go

一旦我提出了GCM的依赖性,我就面临着这个问题

错误:(50,0)找不到渐变DSL方法:“comiple()” 可能原因:“everybill代码库”项目可能使用的Gradle版本不包含该方法。 打开Gradle包装文件生成文件可能缺少Gradle插件。 应用Gradle插件

这是第50行的build.gradle文件

comiple 'com.google.android.gms:play-services-gcm:8.4.0'
我正在使用这些服务也从播放服务

compile 'com.google.android.gms:play-services-maps:8.4.0'
    compile 'com.google.android.gms:play-services-identity:8.4.0'
    compile 'com.google.android.gms:play-services-analytics:8.4.0'
    compile 'com.google.android.gms:play-services-location:8.4.0'
这是project中的build.gradle文件

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
        classpath 'com.google.gms:google-services:2.0.0-alpha6'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

如果能知道与此相关的任何解决方案,那将是非常棒的。提前谢谢。

最终有人会结束这个问题,但正如其他人指出的,这只是一个打字错误,请使用
compile()
,而不是
compile()

compile()
compile()
?你使用的是哪个版本的gradle?comiple中有一个拼写错误,而不是compileThanks。读了你的评论,我意识到我因为一个小错误浪费了多少时间。顺便说一句,非常感谢。