Android Question Firebase RemoteConfig And B4A 10.2

asales

Expert
Licensed User
Longtime User
I'm using the Firebase RemoteConfig lib from @DonManfred and works fine in B4A 10.0

Now I try the B4A 10.2 beta and the app stops with no logs.

I get this error in the unfiltered logs:
B4X:
FATAL EXCEPTION: main
Process: br.com.myprofiles.testes, PID: 26153
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.remoteconfig.RemoteConfigComponent]>{2, type=0, deps=[Dependency{anInterface=class com.google.firebase.abt.component.AbtComponent, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.analytics.connector.AnalyticsConnector, type=optional, direct=true}, Dependency{anInterface=class android.content.Context, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi
    at android.app.ActivityThread.installProvider(ActivityThread.java:5855)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:5444)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5383)
    at android.app.ActivityThread.-wrap2(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6123)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.remoteconfig.RemoteConfigComponent]>{2, type=0, deps=[Dependency{anInterface=class com.google.firebase.abt.component.AbtComponent, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.analytics.connector.AnalyticsConnector, type=optional, direct=true}, Dependency{anInterface=class android.content.Context, 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>(FirebaseApp.java:433)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:1751)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:1726)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:5852)
    ... 10 more
  Force finishing activity br.com.myprofiles.testes/.main
Sending non-protected broadcast com.motorola.motocare.INTENT_TRIGGER from system 4458:com.motorola.process.system/1000 pkg com.motorola.motgeofencesvc
java.lang.Throwable
    at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)
    at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)
    at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)
    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)
    at android.os.Binder.execTransact(Binder.java:565)
Initialized EGL, version 1.4

Which could be the problem?

Thanks in advance for any tips.
 

DonManfred

Expert
Licensed User
Longtime User
Which could be the problem?
Probably the Manifest-content.
Can you post your manifest editor text?

I guess you are using the new SDK coming with 10.2, right?
 
Last edited:
Upvote 0

asales

Expert
Licensed User
Longtime User
Probably the Manifest-content.
Can you post your manifest editor text?
Only this line to FirebaseConfig and works fine (until now):
B4X:
CreateResourceFromFile(Macro, FirebaseRemoteConfig.Firebase)

CreateResourceFromFile(Macro, FirebaseRemoteConfig.Firebase)
I guess you are using the new SDK coming with 10.2, right?
Yes. All new and updated with artifacts that missing.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
Nope. Same error.
But don't worry. I'll back to B4A 10.0 to update some apps.
After that, I look and test with more time.

B4X:
FATAL EXCEPTION: main
Process: br.com.myprofiles.testes, PID: 1298
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.messaging.FirebaseMessaging]>{1, type=0, deps=[Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=interface com.google.android.datatransport.TransportFactory, type=optional, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.iid.FirebaseInstanceId, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi
    at android.app.ActivityThread.installProvider(ActivityThread.java:5855)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:5444)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5383)
    at android.app.ActivityThread.-wrap2(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6123)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.messaging.FirebaseMessaging]>{1, type=0, deps=[Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=interface com.google.android.datatransport.TransportFactory, type=optional, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.iid.FirebaseInstanceId, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, 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>(FirebaseApp.java:433)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:1751)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:1726)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:5852)
    ... 10 more
  Force finishing activity br.com.myprofiles.testes/.main
 
Upvote 0
Top