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