Skip to content

Crash in Android: No caller found on the stack for: com.google.common.flogger.FluentLogger #388

@fanwgwg

Description

@fanwgwg

Using the Flogger library with the latest Android Studio Koala Feature Drop | 2024.1.2, AGP 8.6 causes this crash.

Not seeing before updating the Android Studio and AGP.

Caused by java.lang.IllegalStateException: no caller found on the stack for: com.google.common.flogger.FluentLogger
       at com.google.common.flogger.backend.system.StackBasedCallerFinder.findLoggingClass(StackBasedCallerFinder.java:46)
       at com.google.common.flogger.FluentLogger.forEnclosingClass(FluentLogger.java:68)
       at com.myapp.utils.DebugLogger.<clinit>(DebugLogger.java)
       at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:229)
       at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:216)
       at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:129)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at com.myapp.AppModule$1.lambda$newThread$0(AppModule.java:118)
       at java.lang.Thread.run(Thread.java:919)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3type=defectBug, not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions