apply plugin: 'com.android.application'
android
{
compileSdkVersion 24
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.example.asus.salestrackingsystem"
minSdkVersion 15
targetSdkVersion 24
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'
})'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.google.firebase:firebase-auth:16.0.5'
compile 'com.google.firebase:firebase-database:16.0.5'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
但仍然无法成功添加实时数据库,Firebase Assistant 不断要求将实时数据库添加到您的应用程序。有人可以帮助我吗?
最佳答案
点击以下链接。
https://blog.mindorks.com/firebase-realtime-database-android-tutorial
https://github.com/MChehab94/Firebase-Realtime-Database-Demo
https://www.simplifiedcoding.net/firebase-realtime-database-crud/
https://www.vogella.com/tutorials/Firebase/article.html
https://www.androidtutorialpoint.com/firebase/firebase-database-tutorial/
https://proandroiddev.com/firebase-android-playground-realtime-database-560d4e18404a
关于java - 使用 android studio firebase 添加实时数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59781212/