Bar*_*thy 5 android firebase firebase-realtime-database
我按照Firebase Auth和数据库的文档进行操作.
全新安装后一切正常:
用户可以注册或登录,数据按照应有的方式检索,写得应该如此,超级快,超级干净.好极了.
然后,经过android Studio重启几次后,数据库的东西不再起作用了.重启的数量各不相同,我找不到规则等.如果我卸载并重新安装apk(仍然通过Android Studio)它再次工作.
我正在监视auth状态,用户保持登录状态,根本没有firebase错误.
我得到了很多,E/DynamiteModule: Failed to load module descriptor class:但显然这不是一个错误(只是提到它,因为我连续20行的"错误".
知道我应该从哪里开始寻找?
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
...
minSdkVersion 15
targetSdkVersion 23
...
}
...
}
...
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.google.firebase:firebase-core:9.0.1'
compile 'com.google.firebase:firebase-database:9.0.1'
compile 'com.google.firebase:firebase-storage:9.0.1'
compile 'com.google.firebase:firebase-auth:9.0.1'
compile 'com.google.firebase:firebase-messaging:9.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha1'
compile 'cn.pedant.sweetalert:library:1.3'
testCompile 'junit:junit:4.12'
}
Run Code Online (Sandbox Code Playgroud)
{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1498 次 |
| 最近记录: |