2016-09-15 16 views
0

私は自分のアプリケーションにfirebaseを混在させようとしていますが、依存関係は含まれていますが、プロジェクトを同期しようとするとエラーが発生します。 (プロジェクト:AppNameは)Firebaseを使用中に重複したファイルがAPK META-INF/NOTICEエラーにコピーされる

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.1" 

    defaultConfig { 
     applicationId "oerrride.we.huzykamz.testingappfirebase" 
     minSdkVersion 13 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.1.0' 
    compile 'com.firebase:firebase-client-android:2.3.1' 
    compile 'com.google.firebase:firebase-database:9.4.0' 
    compile 'com.google.firebase:firebase-crash:9.4.0' 
    compile 'com.google.firebase:firebase-auth:9.4.0' 

} 
apply plugin: 'com.google.gms.google-services' 

、これが私のGradleある

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:1.5.0' 
     classpath 'com.google.gms:google-services:3.0.0' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

This is the Error shown click here

+1

内の特定の衝突があったので、それはそのエラーを持って来られたので、依存性は'com.firebase:firebase-client-android:2.3.1'をコンパイル削除'firebase-client-android:2.3.1'と、' com.google.firebase:firebase-database'のような新しい9.X SDKのライブラリがあります。 –

+0

@qbix:あなたはすべてのものをすくい取っているように見えるので、あなたはこの答えを確定する必要があります。 :-) よくできました! –

+0

@ qbixでどうぞ私の編集方法を教えてもらえますか? –

答えて

0
は追加

Androidのスタジオでこれは私のエラーの絵されています。以下は、私のGradle(アプリケーションモジュール)であります次のコードのコード:

android { packagingOptions { exclude 'META-INF/NOTICE' } }

+0

どのgradleファイルが2つあるか@Bansal –

+0

これを追加しましたが、モジュール:App build.gradleの「APK META-INF/LICENSEにコピーされた重複ファイル」 –

+0

という別のエラーが発生し続ける –

関連する問題