I added the fileprovider class to my project but it crashes at the start, it doesn't show in the b4a logs but in crashlytics does.
Showing this:
The attached project crashes too, I added the libraries and manifest code that I use in the real project to the fileprovider example, I can't tell if it is exactly the same error but it seems to be.
Any idea of what could be causing the crash? Thanks
Showing this:
B4X:
Fatal Exception: java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f06002d
at android.app.ActivityThread.installProvider(ActivityThread.java:6621)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6173)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6079)
at android.app.ActivityThread.-wrap1()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1791)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7000)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f06002d
at android.content.res.ResourcesImpl.getResourcePackageName(ResourcesImpl.java:273)
at android.content.res.Resources.getResourcePackageName(Resources.java:1964)
at com.google.android.gms.common.internal.StringResourceValueReader.<init>(com.google.android.gms:play-services-basement@@17.2.0:5)
at com.google.firebase.FirebaseOptions.fromResource(com.google.firebase:firebase-common@@19.3.0:156)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:244)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1925)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1900)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)
at android.app.ActivityThread.installProvider(ActivityThread.java:6618)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6173)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6079)
at android.app.ActivityThread.-wrap1()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1791)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7000)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
The attached project crashes too, I added the libraries and manifest code that I use in the real project to the fileprovider example, I can't tell if it is exactly the same error but it seems to be.
Any idea of what could be causing the crash? Thanks