2
我想將Firebase
整合到我的應用程序中,並遵循Google的指示。但是當我同步我的文件的gradle我有以下錯誤信息:錯誤:任務':app:processDebugResources'的執行失敗。 >錯誤:包名稱不止一個庫'com.google.android.gms'
Error:Execution failed for task :app:processDebugResources'.
Error: more than one library with package name com.google.android.gms
如果我刪除線apply plugin: 'com.google.gms.google-services'
然後再優秀作品:(
你你們能不能幫我找出了問題是什麼?
貝洛是我的應用程序級的文件。提前
感謝
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
dexOptions {
javaMaxHeapSize "4g"
}
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId 'com.biggift'
minSdkVersion 15
targetSdkVersion 23
multiDexEnabled true
}
signingConfigs {
release {
storeFile file("android.keystore")
storePassword "123456"
keyAlias "sensiblewallet"
keyPassword "123456"
}
}
buildTypes {
release {
//minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
//signingConfig signingConfigs.release
//multiDexEnabled true
}
}
productFlavors {
}
}
dependencies {
//compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.google.code.gson:gson:2.3.1'
compile files('libs/NativeXMonetizationSDK_v5.4.12.jar')
compile files('libs/Parse-1.3.8.jar')
compile files('libs/SuperRewards-3.1b.jar')
compile files('libs/TrialpayAndroidSdk.jar')
compile files('libs/acra-4.5.0.jar')
compile files('libs/adcolony.jar')
compile files('libs/adscendmedia1.0.1.jar')
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/mediationsdk-6.2.2.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/personasdk1.1.jar')
compile files('libs/picasso-2.4.0.jar')
compile files('libs/tapjoyconnectlibrary.jar')
compile files('libs/vungle-publisher-adaptive-id-3.3.1.jar')
compile files('libs/chartboost.jar')
compile files('libs/applovin-sdk-6.1.5.jar')
compile files('libs/heyzap.jar')
compile files('libs/revmob.jar')
compile project(':appGradeLib')
//compile project(':sensiblefacebooksdk')
compile project(':googleplayserviceslib')
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:design:23.0.1'
compile files('libs/AdxmiCustomizedSdk_v1.2.0_2015-11-13.jar')
compile files('libs/AdxmiSdk_v5.4.0_2015-11-12.jar')
compile project(':unity-ads')
}
apply plugin: 'com.google.gms.google-services'
從@ SergJ4:看這裏http://stackoverflow.com/a/40155490它幫助了我。我剛剛爲與firebase和同步項目相同版本的play-services添加了編譯依賴項。 – Takarii