【问题标题】:'com.google.android.gms' Confliction when implementing GameAnalytics实施 GameAnalytics 时的“com.google.android.gms”冲突
【发布时间】:2016-01-14 09:17:26
【问题描述】:

我收到此错误:

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;
    }
}

为什么会出现这个错误?

【问题讨论】:

    标签: android twitter-fabric gameanalytics


    【解决方案1】:

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

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

    像这样:

    compile('com.gameanalytics.sdk:gameanalytics-android:2.1.0@aar') {
        transitive = true;
        exclude group: 'com.google.android.gms'
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多