2016-09-24 115 views
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' 
+0

从@ SergJ4:看这里http://stackoverflow.com/a/40155490它帮助了我。我刚刚为与firebase和同步项目相同版本的play-services添加了编译依赖项。 – Takarii

回答

0

google_play_services_lib已经使用google play services.jar文件。检查该项目中的lib文件夹。这是造成双重性的原因。您需要将图书馆放在两个地方中的任何一个地方,即在图书馆项目中或这里。

相关问题