timbremer
timbremer

Reputation: 143

FirebaseRemoteConfig: Cannot resolve symbol

I already use some Firebase packages in my app, today I wanted to implement Remote Configuration. I added it to my app as shown in the Doc, but something seems to be wrong with my dependencies. Every other Firebase module works, just for remote config it shows

Cannot resolve symbol 'FirebaseRemoteConfig'

in my activity. I tried re-adding the dependency, multiple gradle syncs, rebuilding the project and restarting the IDE. What could I have done wrong?

Thanks!

EDIT: The problem solved itself: https://stackoverflow.com/a/41664760/3116350

Upvotes: 2

Views: 4629

Answers (5)

ThatThechDevGuy
ThatThechDevGuy

Reputation: 51

Had the same issue on Android Studio Ladybug (2024.2.1 Patch 2).

Adding implementation(platform("com.google.firebase:firebase-bom:33.7.0")) did the trick.

To clarify, simply adding the following dependencies to build.gradle(:app) was not enough:

implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-config'
implementation 'com.google.firebase:firebase-abt'

Invalidating the caches and restarting did not work either

Upvotes: 0

fahrizal89
fahrizal89

Reputation: 825

I solved the issue by adding the dependencies with non-BoM.

implementation 'com.google.firebase:firebase-config-ktx:21.2.0'

Upvotes: 1

Ali Ashraf
Ali Ashraf

Reputation: 1919

In Android Studio, File > Invalidate cache/ restart > Invalidate and Restart.

Solved for me :)

Upvotes: 0

WSBT
WSBT

Reputation: 36323

I was having the same problem. Turns out, I did not include its dependency in gradle:

implementation 'com.google.firebase:firebase-config:11.8.0'

I assumed it's the same dependency as Firebase Analytics but it's not.

Upvotes: 2

timbremer
timbremer

Reputation: 143

After about an hour the issue solved itself without me changing anything. Don't know if it was a server-side issue or something else, but it works now.

Upvotes: 0

Related Questions