-
Notifications
You must be signed in to change notification settings - Fork 385
[KSP2] Hilt incompatibility: Did you forget to apply the Gradle Plugin? #1841
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingprocessorerrors reported by processors.errors reported by processors.
Description
KSP tasks are failing because of a Hilt error when building with Kotlin 2.0.0-RC1 and KSP2 enabled:
- SimonMarquis/QrCode
> Task :app:kspDebugKotlin e: [ksp*** [Hilt*** Class java.lang.Object is not annotated with @AssistedFactory. [Hilt*** Processing did not complete. See error above for details. e: [ksp*** [Hilt*** Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin? (com.google.dagger.hilt.android) See https://dagger.dev/hilt/gradle-setup.html [Hilt*** Processing did not complete. See error above for details. e: [ksp*** [Hilt*** Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin? (com.google.dagger.hilt.android) See https://dagger.dev/hilt/gradle-setup.html [Hilt*** Processing did not complete. See error above for details. e: [ksp*** [Hilt*** Expected @HiltAndroidApp to have a value. Did you forget to apply the Gradle Plugin? (com.google.dagger.hilt.android) See https://dagger.dev/hilt/gradle-setup.html - android/nowinandroid
This stacktrace also contains an error referenced in this KSP issue:
> Task :ui-test-hilt-manifest:kspDemoDebugKotlin FAILED e: [ksp] [Hilt] Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin? (com.google.dagger.hilt.android) See https://dagger.dev/hilt/gradle-setup.html [Hilt] Processing did not complete. See error above for details. > Task :core:analytics:kspDemoDebugKotlin FAILED e: [ksp] java.lang.NullPointerException: null cannot be cast to non-null type androidx.room.compiler.processing.XType
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingprocessorerrors reported by processors.errors reported by processors.