0

我收到此错误:

Error:Execution failed for task ':app:processDebugResources'. > Error: more than one library with package name 'com.google.android.gms'

当我尝试通过 Fabric 实现 GameAnalytics 时。

这是来自built.gradle 文件的片段

dependencies {
    compile 'com.google.android.gms:play-services-ads:8.4.0'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:support-v4:23.1.0'
    compile('com.gameanalytics.sdk:gameanalytics-android:2.1.0@aar') {
        transitive = true;
    }
}

为什么我会收到此错误?

4

1 回答 1

2

可能 GameAnalytics 也实现了这项服务。

尝试添加:排除组:com.google.android.gms

像这样:

compile('com.gameanalytics.sdk:gameanalytics-android:2.1.0@aar') {
    transitive = true;
    exclude group: 'com.google.android.gms'
}
于 2016-01-14T09:21:30.010 回答