Skip to content

Using hilt 2.60 with Kotlin 2.4.0: error: package com.google.errorprone.annotations does not exist #5204

Description

@yamin8000

As @bcorso suggested in #2617 I created a new issue. I used hilt 2.59.2 and kotlin 2.3.21 with no problems whatsoever, however, after upgrading them, I can't compile the project. This happens during :app:hiltJavaCompileDebug phase of gradle build.

C:\x\x\x\x\app\build\generated\hilt\component_sources\debug\x\x\x\owl\x\DaggerApp_HiltComponents_SingletonC.java:10: error: package com.google.errorprone.annotations does not exist
import com.google.errorprone.annotations.CanIgnoreReturnValue;
                                        ^
C:\x\x\x\x\app\build\generated\hilt\component_sources\debug\x\x\x\x\core\DaggerApp_HiltComponents_SingletonC.java:500: error: cannot find symbol
    @CanIgnoreReturnValue
     ^
  symbol:   class CanIgnoreReturnValue
  location: class ActivityCImpl
2 errors

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions