firebase-android-sdk: Getting "class file for com.google.common.util.concurrent.ListenableFuture not found" in Worker class.
[REQUIRED] Step 2: Describe your environment
- Android Studio version: Giraffe | 2022.3.1 Patch 2
- Firebase Component: Analytics
- Component version: 21.4.0
[REQUIRED] Step 3: Describe the problem
cannot access ListenableFuture public class MyWorker extends Worker { ^ class file for com.google.common.util.concurrent.ListenableFuture not found
Steps to reproduce:
I am using Work Manager and have Worker class. After upgrading to version 21.4.0 of Firebase Analytics, I am getting this issue. I am using the following dependencies.
Relevant Code:
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
implementation "androidx.work:work-runtime:2.8.1"
implementation platform('com.google.firebase:firebase-bom:32.4.0')
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 7
- Comments: 22 (8 by maintainers)
same issue with com.google.firebase:firebase-bom v32.6.0
Hi all, you can try the following as a temporary solution until it’s fixed on our side. Please reply back if it works for you
Add a dependency on guava
i am also getting this issue