Closed s1nyx closed 8 months ago
Hi, @s1nyx , I think it's because the Hilt Gradle plugin is not applied. In your module build.gradle.kts you can try replacing this line:
id("com.google.dagger.hilt.android") version "2.48.1" apply false
to this:
id("com.google.dagger.hilt.android")
Hi, @s1nyx , I think it's because the Hilt Gradle plugin is not applied. In your module build.gradle.kts you can try replacing this line:
id("com.google.dagger.hilt.android") version "2.48.1" apply false
to this:
id("com.google.dagger.hilt.android")
Hey, I just done it, after cleaning and rebuild I get this error Caused by: java.lang.IllegalStateException: The KSP plugin was detected to be applied but its task class could not be found.
Okay I found the issue.
In the Module build.gradle.kts :
Renamed id("com.google.devtools.ksp") version "1.9.21-1.0.15"
to id("com.google.devtools.ksp")
In the Project build.gradle.kts:
Added id("com.google.devtools.ksp") version "1.9.21-1.0.15"
Works perfectly now :D Thanks !
Hi,
I am having an issue with Hilt when i try to build my app on Android Studio.
I get this error :
I have
@AndroidEntryPoint
in myMainActivity.kt
and@HiltAndroidApp
in myProjectApp.kt
. So I don't understand what I am doing wrong.More informations on the app: Github: https://github.com/s1nyx/supinfo-eng3-3andm-projet
Project build.gradle.kts:
Module build.gradle.kts: