私は自分のアプリケーションに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
内の特定の衝突があったので、それはそのエラーを持って来られたので、依存性は
'com.firebase:firebase-client-android:2.3.1'
をコンパイル削除'firebase-client-android:2.3.1'と、' com.google.firebase:firebase-database'のような新しい9.X SDKのライブラリがあります。 –@qbix:あなたはすべてのものをすくい取っているように見えるので、あなたはこの答えを確定する必要があります。 :-) よくできました! –
@ qbixでどうぞ私の編集方法を教えてもらえますか? –