After we updated to Dagger 2.53 and Kotlin 2.1.0 we now see a lot of similar warnings already reported in the past: #4182.
There is also already a new bug in the issue tracker: https://issuetracker.google.com/issues/381887333
Since we did not see any errors with Kotlin 2.0.21 and Dagger 2.52 I think this is not caused by our dependency or project setup.
This warning is shown only for every androidx.lifecycle.ViewModel and no other classes in our project:
w: [ksp] No dependencies reported for generated source
MyViewModel_HiltModules_KeyModule_Provide_LazyMapKey.java which willprevent incremental compilation.
MyViewModel_ViewModel_HiltModules_BindsModule_Binds_LazyMapKey.java which willprevent incremental compilation.
- AGP: 8.7.3
- Gradle: 8.11.1
- Dagger: 2.53
- Kotlin: 2.1.0
- AndroidX lifecycle-viewmodel-ktx 2.8.7