【发布时间】:2016-10-27 07:50:05
【问题描述】:
我正在使用 Firebase 在 Android Studio 上构建一个项目。完成,当我编译时,出现以下错误。我在堆栈上阅读了关于此的其他答案,但无法理解我在做什么错。我是 Android Studio 新手
下面是我的 app/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'
【问题讨论】:
-
发布完整的错误日志。
标签: android android-studio firebase android-gradle-plugin firebase-realtime-database