在不兼容的gradle库 [英] Incompatible libraries in gradle

查看:1041
本文介绍了在不兼容的gradle库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序使用GCM,但同时gradle这个文件中添加依赖关系我得到了不兼容的库错误。
我的应用程序的gradle水平有文件的依赖关系如下。

i want to use gcm in my app, but while adding dependancies in gradle file i got error of incompatible libraries. my app level gradle file have dependancies as follows ..

apply plugin: 'com.google.gms.google-services'
 .
 .
 .
 .
 .
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp:2.6.0'
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
compile 'com.squareup.okhttp:logging-interceptor:2.6.0'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'com.appvirality:AppviralityUI:1.1.18+'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
}

和我添加了类路径'com.google.gms:谷歌服务:1.5.0-β2
在我的项目的gradle水平

and i have added classpath 'com.google.gms:google-services:1.5.0-beta2' in my project level gradle.

我的谷歌播放服务已更新为最新版本,但它仍然显示错误,如..
所有的库必须使用相同的版本规格。
检查我得到了知道这冲突结束后编译com.appvirality:AppviralityUI:1.1.18 +'。

my google play services is updated to latest version but still it shows error like.. All libraries must use the exact same version specifications. After checking i got know that it conflicts compile 'com.appvirality:AppviralityUI:1.1.18+' library.

感谢

推荐答案

不知道如何..但是,得到它通过改变编译'com.google.android.gms只是wroking:玩 - 服务 - GCM:8.3.0 编译com.google.android.gms:发挥服务:8.3.0

Dont know how.. but, Got it wroking just by changing compile 'com.google.android.gms:play-services-gcm:8.3.0' to compile 'com.google.android.gms:play-services:8.3.0'

这篇关于在不兼容的gradle库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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