摇篮DSL方法未找到:'comiple()“把GCM的依赖后, [英] Gradle DSL method not found: 'comiple()' after putting gcm dependency

查看:246
本文介绍了摇篮DSL方法未找到:'comiple()“把GCM的依赖后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面对这个问题,一旦我把GCM的依赖。

I am facing this issue once I put the dependency of GCM.

错误:(50,0)摇篮DSL方法未找到:'comiple()
可能的原因:该项目的everybill- codeBase的可能是使用一个版本的摇篮不包含的方法。
打开包装摇篮构建fileThe文件可能丢失一个摇篮插件。
应用摇篮插件

Error:(50, 0) Gradle DSL method not found: 'comiple()' Possible causes:The project 'everybill-codebase' may be using a version of Gradle that does not contain the method. Open Gradle wrapper fileThe build file may be missing a Gradle plugin. Apply Gradle plugin

这是行中没有50的文件的build.gradle,

This is the build.gradle file of line no 50,

comiple 'com.google.android.gms:play-services-gcm:8.4.0'

我使用这些服务也发挥服务

I am using these services also from play-service

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'

这是在项目的build.gradle文件

this is the build.gradle file in project

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()
    }
}

这将是巨大知道这个相关的任何解决方案。先谢谢了。

It would be great to know any solution related with this. Thanks in advance.

推荐答案

最后,有人将关闭这个问题,但其他人指出,这只是一个错字,用编译()而不是 comiple()

Eventually someone is going to close this question, but as the other guys pointed out it's just a typo, use compile() instead of comiple().

这篇关于摇篮DSL方法未找到:'comiple()“把GCM的依赖后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆