错误:任务';的执行失败:应用程序:processDebugResources'&燃气轮机;错误:多个库的包名为';com.google.android.gms';
我正在尝试将错误:任务';的执行失败:应用程序:processDebugResources'&燃气轮机;错误:多个库的包名为';com.google.android.gms';,android,firebase,build.gradle,Android,Firebase,Build.gradle,我正在尝试将Firebase集成到我的应用程序中,我遵循谷歌的指示。但是,在同步gradle文件后,我会收到以下错误消息: 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',那么它
Firebase
集成到我的应用程序中,我遵循谷歌的指示。但是,在同步gradle文件后,我会收到以下错误消息:
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'
,那么它仍然可以正常工作:(
你们能帮我找出问题出在哪里吗
Belo是我的应用程序等级文件
提前谢谢
google_play_services_库已经使用了google play services.jar文件。请检查该项目中的lib文件夹。这导致了重复。您需要将库保留在两个位置之一,即在您的库项目中或此处。From@SergJ4:Look here它帮助了我。我刚刚为t的play服务添加了编译依赖项他使用了与firebase相同的版本并同步了项目。
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'