App/Android

Internal error in Firestore (0.6.6-dev)

selfstarter 2020. 4. 1. 06:46

Internal error in Firestore (0.6.6-dev)

  • 이미지를 firestorage에 올릴 때 해당 에러가 발생하면서 앱이 강제 종료 되었다
  • stack over flow나 여러곳을 찾았지만 원인을 알 수 없었다
  • 해당 프로젝트는 instagram 클론 프로젝트 인강을 따라하고 있는 중이었다. 그래서 gradle에서 포함한 라이브러리를 강의와 똑같이 만들었다
  • com.google.code.gson:gson:2.8.6
  • com.google.http-client:google-http-client:1.34.0
  • com.google.http-client:google-http-client-android:1.34.0
  • com.google.http-client:google-http-client-gson:1.34.0
  • 위 라이브러리 삭제
  • 그리고 나서 해당 에러가 없어졌다. 아마 라이브러리끼리 무언가 충돌이 일어난 듯 하다
2020-03-30 20:48:13.655 3974-3974/com.test.howl_instaclone E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.test.howl_instaclone, PID: 3974
    java.lang.RuntimeException: Internal error in Firestore (0.6.6-dev).
        at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$5(com.google.firebase:firebase-firestore@@18.0.0:379)
        at com.google.firebase.firestore.util.AsyncQueue$$Lambda$5.run(com.google.firebase:firebase-firestore@@18.0.0)
        at android.os.Handler.handleCallback(Handler.java:751)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6119)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
     Caused by: java.lang.IllegalAccessError: Field 'io.opencensus.trace.unsafe.ContextUtils.CONTEXT_SPAN_KEY' is inaccessible to class 'io.grpc.internal.CensusTracingModule$TracingClientInterceptor' (declaration of 'io.grpc.internal.CensusTracingModule$TracingClientInterceptor' appears in /data/app/com.test.howl_instaclone-2/base.apk:classes3.dex)
        at io.grpc.internal.CensusTracingModule$TracingClientInterceptor.interceptCall(CensusTracingModule.java:384)
        at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:156)
        at io.grpc.internal.CensusStatsModule$StatsClientInterceptor.interceptCall(CensusStatsModule.java:669)
        at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:156)
        at io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:777)
        at io.grpc.internal.ForwardingManagedChannel.newCall(ForwardingManagedChannel.java:63)
        at io.grpc.android.AndroidChannelBuilder$AndroidChannel.newCall(AndroidChannelBuilder.java:288)
        at com.google.firebase.firestore.util.FirestoreChannel.runBidiStreamingRpc(com.google.firebase:firebase-firestore@@18.0.0:134)
        at com.google.firebase.firestore.remote.AbstractStream.start(com.google.firebase:firebase-firestore@@18.0.0:245)
        at com.google.firebase.firestore.remote.WriteStream.start(com.google.firebase:firebase-firestore@@18.0.0:86)
        at com.google.firebase.firestore.remote.RemoteStore.startWriteStream(com.google.firebase:firebase-firestore@@18.0.0:580)
        at com.google.firebase.firestore.remote.RemoteStore.fillWritePipeline(com.google.firebase:firebase-firestore@@18.0.0:550)
        at com.google.firebase.firestore.core.SyncEngine.writeMutations(com.google.firebase:firebase-firestore@@18.0.0:231)
        at com.google.firebase.firestore.core.FirestoreClient.lambda$write$11(com.google.firebase:firebase-firestore@@18.0.0:198)
        at com.google.firebase.firestore.core.FirestoreClient$$Lambda$11.run(com.google.firebase:firebase-firestore@@18.0.0)
        at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$4(com.google.firebase:firebase-firestore@@18.0.0:311)
        at com.google.firebase.firestore.util.AsyncQueue$$Lambda$4.call(com.google.firebase:firebase-firestore@@18.0.0)
        at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$3(com.google.firebase:firebase-firestore@@18.0.0:287)
        at com.google.firebase.firestore.util.AsyncQueue$$Lambda$3.run(com.google.firebase:firebase-firestore@@18.0.0)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at com.google.firebase.firestore.util.AsyncQueue$DelayedStartFactory.run(com.google.firebase:firebase-firestore@@18.0.0:205)
        at java.lang.Thread.run(Thread.java:761)