java.lang.RuntimeException:Firestore中的内部错误(0.6.6-dev)

时间:2018-06-07 10:50:30

标签: android firebase android-studio google-cloud-firestore

我在我的应用程序中使用FireStore。 他们的版本是 Firestore

我正在使用offline feature of firestore E/AndroidRuntime: FATAL EXCEPTION: main Process: com.firestoretest.videostatus, PID: 13763 java.lang.RuntimeException: Internal error in Firestore (0.6.6-dev). at bov.b(Unknown Source:19) at box.run(Unknown Source:2) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:172) at android.app.ActivityThread.main(ActivityThread.java:6637) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: java.lang.ExceptionInInitializerError at cbh.<clinit>(Unknown Source:20) at ced.b(Unknown Source:0) at cee.b(Unknown Source:0) at cee.a(Unknown Source:0) at car.a(Unknown Source:4) at bod.<init>(Unknown Source:22) at bjo.a(Unknown Source:87) at bjq.run(Unknown Source:8) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at bov$a.run(Unknown Source:15) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Package.getImplementationVersion()' on a null object reference at cco.b(Unknown Source:6) at cco.<clinit>(Unknown Source:137) at cbh.<clinit>(Unknown Source:20)  at ced.b(Unknown Source:0)  at cee.b(Unknown Source:0)  at cee.a(Unknown Source:0)  at car.a(Unknown Source:4)  at bod.<init>(Unknown Source:22)  at bjo.a(Unknown Source:87)  at bjq.run(Unknown Source:8)  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)  at java.util.concurrent.FutureTask.run(FutureTask.java:266)  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)  at bov$a.run(Unknown Source:15)  at java.lang.Thread.run(Thread.java:764) 的数据库来获取数据。

这工作正常,但是当我签署应用程序的时候,我正在低于bug。

EntityFramework

如果有任何人对此错误有任何疑问,请通知我。 在此先感谢。

4 个答案:

答案 0 :(得分:2)

尝试将-keep class io.grpc.** {*;}添加到您的proguard配置中。它应该工作。自从我添加它以来,没有任何崩溃。将进一步测试。

答案 1 :(得分:1)

你是说在创建签名apk后会发生这种情况吗?

然后尝试在firebase控制台中添加已签名应用的SHA1或SHA256

如果您使用对象获取数据并使用   minifyEnabled在gradle中为true

然后更改你的proguard文件

答案 2 :(得分:0)

自从我将 firestore 依赖关系更新为 over v16 后,我遇到了同样的问题。 它只发生在我的发布版本中,特别是可调试必须设置为 false

我可以确认所选择的解决方案(将以下内容添加到proguard配置中)确实解决了崩溃问题。

-keep class io.grpc.** {*;}

答案 3 :(得分:-1)

更新以下内容:

Firebase dependency versionsPlay services dependency versions

那解决了我的问题。