expo.modules.firebase.messaging.EXFirebaseInstanceIdService fatals on first run

#1

Running an android build of the sample app at https://github.com/EvanBacon/expo-native-firebase reliably fatals on the first run. Weirdly, the app seems to launch fine on subsequent runs. Any ideas what could be causing this?

Running on a real device, Galaxy S8+, Android 8.0

cc @bacon

2019-01-08 12:30:59.348 16153-16153/com.evanbacon.demofirebasemodulesapp E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.evanbacon.demofirebasemodulesapp, PID: 16153
    java.lang.RuntimeException: Unable to instantiate service expo.modules.firebase.messaging.EXFirebaseInstanceIdService: java.lang.ClassNotFoundException: Didn't find class "expo.modules.firebase.messaging.EXFirebaseInstanceIdService" on path: DexPathList[[zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/base.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_dependencies_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_resources_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/lib/arm, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/base.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_dependencies_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_resources_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_0_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_1_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_2_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_3_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_4_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_5_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_6_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_7_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_8_apk.apk!/lib/armeabi-v7a, /data/app/com.evanbacon.demofirebasemodulesapp-AT3t8AVguVrdiPjcTjYePw==/split_lib_slice_9_apk.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3527)
        at android.app.ActivityThread.-wrap4(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1786)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.