重复条目:com / google / android / gms / analytics / internal / Command.class

时间:2016-01-27 02:27:22

标签: java android android-studio google-analytics

我遇到了错误

  

packageAllDebugClassesForMultiDex&#39 ;. java.util.zip.ZipException:   双重输入:   COM /谷歌/机器人/克/分析/内部/ Command.class

这是我的傻瓜

dependencies {

compile project(':simonVTLibrary')
compile project(':facebookSDK')
compile project(':library')
compile 'com.android.support:support-v4:23.0.0'
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:appcompat-v7:23.0.0'
compile files('libs/crashlytics.jar')
compile files('libs/InMobi-4.1.1.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/PayPalAndroidSDK-2.5.1.jar')
compile files('libs/picasso-2.4.0.jar')
compile 'com.android.support:multidex:1.0.0'

}

我想我在libs / libGoogleAnalyticsServices.jar'之间有重复。和' com.google.android.gms:播放服务:+'我一直在寻找,却无法找到答案。我需要做什么工作?

1 个答案:

答案 0 :(得分:2)

依赖

com.google.android.gms:play-services:+

已包含Google分析库,您不应手动添加本地jar。此外,如果您只需要Google Analytics,我建议您使用单独的模块

com.google.android.gms:play-services-analytics:8.4.0

仅包含Google Analyticals所需的依赖项

相关问题