I am using Android Studio Iguana | 2023.2.1 Patch 1. Create sample project it default configured build.gradle.kts(app) in this gradle "libs.versions.toml" file created,
Now i add hilt on toml file after that, the file not showing in build.gradle. Attached screenshot please guide me to solve this build issue.
implementation(libs.hilt) showing error
[libraries]
hilt-android = { group = "com.google.dagger", name = "hilt-android" ,
version.ref = "hiltVersion"}
hilt-compiler = { group = "com.google.dagger", name = "hilt-compiler" ,
version.ref = "hiltVersion"}
[plugins]
kotlinAndroidKsp = { id = "com.google.devtools.ksp", version.ref =
"kspVersion" }
hiltAndroid = { id = "com.google.dagger.hilt.android", version.ref =
"hiltVersion" }
alias(libs.plugins.hiltAndroid) apply false
alias(libs.plugins.kotlinAndroidKsp) apply false
alias(libs.plugins.kotlinAndroidKsp)
alias(libs.plugins.hiltAndroid)
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)
Now Sync gradle build and error will resolved
Happy coding :)