Android Question Firebase RemoteConfig classdef not found

Jack Cole

Well-Known Member
Licensed User
Longtime User
After downloading all the recent SDK updates, I'm getting some crash reports on RemoteConfig. Any ideas? This is a difficult one because I can't reproduce it.

 

Jack Cole

Well-Known Member
Licensed User
Longtime User
I will try doing an update. I searched the SDK downloader for Firebase-abt. I was using 17.0 and the current Firebase version is 19. I downloaded version 19 of the firebase-abt. Will see if that fixes it.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Unfortunately it is more complicated it seems.

I am trying to compile a new Library.
Unfortunately i get the following compile error

Usually when a SimException occurs one need to desugar the used jar/aar Files.
This is ok for any 3rd Party JARs/AARs

But i´m not sure that desugaring is the correct way for any Maven Artifacts. In the past it never happen to mavens.

I guess something has changed in the SDK what i do not know how to fix it.
Still investigating
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
The workaround is to distribute the desugared library and remove the dependency to the maven resource.
Ok, good.

the problem was firebase-config-19.0.0.aar i guess.
- I desugared it
- I removed the dependency and used the desugared jar instead
- I needed to add
B4X:
#AdditionalJar: com.google.firebase:firebase-abt
#AdditionalJar: firebase-config-ds

And used this as last entry in my Manifesteditor
B4X:
AddApplicationText(
<service android:name="com.google.firebase.components.ComponentDiscoveryService" >
<meta-data
    android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
    android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data
    android:name="com.google.firebase.components:com.google.firebase.iid.Registrar"
    android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data
    android:name="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar"
    android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data
    android:name="com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar"
    android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data
    android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar"
    android:value="com.google.firebase.components.ComponentRegistrar"/>
</service>
)

So far i can see it now does work in my Testproject


@Jack Cole
Please try this example and download the desugared file from HERE. Put the file in your additional libs folder.
Note to use your Firebaseproject Packagename and your json file for sure ;-)
 

Attachments

  • RemoteConfigEx.zip
    9.5 KB · Views: 188
Last edited:
Upvote 0

Jack Cole

Well-Known Member
Licensed User
Longtime User
Manfred,

Thanks for working on this. When I try to run it, I get an error.


But if I comment out #AdditionalJar: firebase-config-ds, it works fine. So maybe it's in good shape now?

Thanks,
Jack
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…