Android Question Unable to get provider com.google.firebase.provider.FirebaseInitProvider

I have the firestoreEx compiling but it crashs immediatly
unfiltered log:
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.kadalshany.firestoreex flg=0x4000010 (has extras) } to com.facebook.pages.app/com.facebook.feed.platformads.AppInstallReceiver
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Shutting down VM
FATAL EXCEPTION: main
Process: com.kadalshany.firestoreex, PID: 24666
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.iid.FirebaseInstanceId]>{1, type=0, deps=[Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.events.Subscriber, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi
    at android.app.ActivityThread.installProvider(ActivityThread.java:7152)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6630)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6525)
    at android.app.ActivityThread.access$1400(ActivityThread.java:220)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1883)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:7520)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.iid.FirebaseInstanceId]>{1, type=0, deps=[Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.events.Subscriber, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi
    at com.google.firebase.components.ComponentRuntime.validateDependencies(com.google.firebase:firebase-components@@16.0.0:170)
    at com.google.firebase.components.ComponentRuntime.processInstanceComponents(com.google.firebase:firebase-components@@16.0.0:89)
    at com.google.firebase.components.ComponentRuntime.<init>(com.google.firebase:firebase-components@@16.0.0:73)
    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:418)
    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)
    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)
    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2101)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2075)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:7147)
    ... 10 more


phone log:
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.iid.FirebaseInstanceId]>{1, type=0, deps=[Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.events.Subscriber, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi    at android.app.ActivityThread.installProvider(ActivityThread.java:7152)    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6630)    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6525)    at android.app.ActivityThread.access$1400(ActivityThread.java:220)    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1883)    at android.os.Handler.dispatchMessage(Handler.java:107)    at android.os.Looper.loop(Looper.java:224)    at android.app.ActivityThread.main(ActivityThread.java:7520)    at java.lang.reflect.Method.invoke(Native Method)    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)Caused by: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.iid.FirebaseInstanceId]>{1, type=0, deps=[Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.events.Subscriber, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi    at com.google.firebase.components.ComponentRuntime.validateDependencies(com.google.firebase:firebase-components@@16.0.0:170)    at com.google.firebase.components.ComponentRuntime.processInstanceComponents(com.google.firebase:firebase-components@@16.0.0:89)    at com.google.firebase.components.ComponentRuntime.<init>(com.google.firebase:firebase-components@@16.0.0:73)    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:418)    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)    at android.content.ContentProvider.attachInfo(ContentProvider.java:2101)    at android.content.ContentProvider.attachInfo(ContentProvider.java:2075)    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)    at android.app.ActivityThread.installProvider(ActivityThread.java:7147)    ... 10 more
 

DonManfred

Expert
Licensed User
Longtime User
You are posting in the wrong place.
You should post your questions in the questions forum

Away from that you are not giving us enough informations to help you.

Post your Manifestcode
 
Upvote 0
manifest:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
'************ Google Play Services Base ************
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
'************ Google Play Services Base (end) ************

'************ Firebase Base ************
'CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseFirestore.Firebase)
'************ Firebase Base (end) ************

'************ Firebase Auth ************
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
'************ Firebase Auth (end) ************
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)


main activity:
#Region  Project Attributes
    #ApplicationLabel: Firestore
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

#Extends: android.support.v7.app.AppCompatActivity
#MultiDex: true
'#BridgeLogger: true
#AdditionalJar: com.google.firebase:firebase-common
#AdditionalJar: com.google.firebase:firebase-auth
#AdditionalJar: com.google.firebase:firebase-database
#AdditionalJar: com.google.firebase:firebase-core
#AdditionalJar: com.google.firebase:firebase-common
#AdditionalJar: com.google.firebase:firebase-firestore
'#AdditionalJar: com.google.gms:google-services
#AdditionalJar: grpc-all-1.22.1.jar
#AdditionalJar: grpc-api-1.22.1.jar
#AdditionalJar: grpc-core-1.22.1.jar
#AdditionalJar: grpc-okhttp-1.22.1.jar
#AdditionalJar: grpc-android-1.22.1.aar
#AdditionalJar: grpc-android-1.22.1-zero.jar
#AdditionalJar: grpc-context-1.22.1.jar
#AdditionalJar: grpc-stub-1.22.1.jar
'#AdditionalJar: grpc-protobuf-1.22.1.jar
#AdditionalJar: grpc-protobuf-lite-1.22.1.jar

#AdditionalJar: opencensus-api-0.23.0.jar
#AdditionalJar: opencensus-contrib-grpc-metrics-0.23.0.jar
#AdditionalJar: opencensus-contrib-http-util-0.23.0.jar
#AdditionalJar: perfmark-api-0.17.0.jar
#AdditionalJar: guava-27.1-android.jar
#ExcludeClasses: com.google.guava:guava-jdk5




'#AdditionalJar: firebase-ui-auth.aar
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
End Sub
 
Upvote 0
I did it 3 times..
Is there a diffenrence between openjdk and oracle jdk? I installed openjdk.
I will reinstall everything again but a least i should know what to make otherwise
 
Upvote 0
Maybe this failing update is important: firebase-bom
I installed all the other firebase updates without any problem
 

Attachments

  • firebase-bom.png
    firebase-bom.png
    89.4 KB · Views: 286
Upvote 0
I erased the sdk folder and installed it again.
As you said, the FirebaseStorage works fine,
but when I open FirebaseFirestoreEx I get the following message.
I updated the sdk using javasdkmanager but I still get this message
After the sdk update FirebaseStorage still works fine.
It seems I need to update some of the other Firebase sdk updates, but which ones? When I updated all of them everything stopped working
 

Attachments

  • firebase-database.png
    firebase-database.png
    12 KB · Views: 240
Upvote 0
I updated the missing sdk update and no the app start but I get a new error related to firestore.
I will open a new thread.
About this thread, the solution is to listen to Erel

Thanks
 
Upvote 0
Top