1
私はAndroid StudioでFirebaseを使用してプロジェクトを構築していました。完成し、コンパイルしたときにエラーが発生しました。私はスタックに関して他の答えを読んでいますが、何をしているのか分かりません。私はファイルの重複を削除する方法Android Studio
以下は私のアプリ/ build.gradle
次
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.example.root.dravis"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//adding firebase dependencies manually
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:design:25.0.0'
compile 'com.google.firebase:firebase-database:9.8.00'
testCompile 'junit:junit:4.12'
compile 'com.firebase:firebase-client-android:2.5.2'
}
apply plugin: 'com.google.gms.google-services'
![Compile Time error Snap](https://i.stack.imgur.com/CMTa6.png)
ポストフルエラーログ:
は、Androidでこの最新Firebaseを始めるの詳細については、こちらのドキュメントを参照してください。 –