2016-01-14 53 views
0

,當我得到這個錯誤:「com.google.android.gms」衝突實現GameAnalytics

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

當我嘗試通過面料來實現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:[email protected]') { 
     transitive = true; 
    } 
} 

的snipet爲什麼會出現這個錯誤?

回答

2

也許GameAnalytics也實現這項服務。

嘗試添加:排除組:com.google.android.gms

像這樣:

compile('com.gameanalytics.sdk:gameanalytics-android:[email protected]') { 
    transitive = true; 
    exclude group: 'com.google.android.gms' 
}