Skip to content

Getting "class file for com.google.common.util.concurrent.ListenableFuture not found" in Worker class. #5467

@ravibpatel

Description

@ravibpatel

[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'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions