本文介绍了重复的jar文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
错误
失败:
- 什么?出错:
执行任务':app:transformClassesWithJarMergingForDebug'失败。
- What went wrong:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
我添加了以下依赖项
dependencies {
//compile 'com.google.android.gms:play-services:+'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
compile files('libs/twitter4j-core-4.0.2.jar')
compile project(':devsmartAndroid')
compile project(':FacebookSDK')
compile project(':libPhotoView')
compile files('libs/android-support-v4.jar')
compile project(':library')
//compile 'com.google.android.gms:play-services-gcm:7.5.0'
//compile 'com.google.android.gms:play-services-analytics:7.5.0'
compile files('libs/gcm.jar')
compile files('libs/libGoogleAnalyticsServices.jar') }
推荐答案
问题在这里
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
最后应该给一个
打电话
You should call one Finally
compile 'com.google.android.gms:play-services:8.4.0'
这篇关于重复的jar文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!