> [versions]
> agp = "8.7.1"
> hiltAndroid = "2.48"
> hiltAndroidCompiler = "2.48"
> kotlin = "1.9.24"
> coreKtx = "1.15.0"
> junit = "4.13.2"
> junitVersion = "1.2.1"
> espressoCore = "3.6.1"
> appcompat = "1.7.0"
> material = "1.12.0"
> activity = "1.10.1"
> constraintlayout = "2.2.1"
> okhttp = "4.12.0"
> roomRuntime = "2.6.1"
> hiltLifeCycle='1.0.0-alpha03'
> androidXhiltCompiler = "1.2.0"
>
> [libraries]
> androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
> androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "roomRuntime" }
> androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "roomRuntime" }
> androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "roomRuntime" }
> hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hiltAndroid" }
> hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hiltAndroidCompiler" }
> hilt-android-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref =
> "hiltAndroidCompiler" }
> hilt-lifecycle = { module = "androidx.hilt:hilt-lifecycle-viewmodel", version.ref =
> "hiltLifeCycle" }
> androidx-hilt-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "androidXhiltCompiler" }
> hilt-gradle = {group = "com.google.dagger",name = "hilt-android-gradle-plugin",version.ref = "hiltAndroid"}
>
>
>
> junit = { group = "junit", name = "junit", version.ref = "junit" }
> androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
> androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
> androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
> material = { group = "com.google.android.material", name = "material", version.ref = "material" }
> androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
> androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
> okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
>
> [plugins]
> android-application = { id = "com.android.application", version.ref = "agp" }
> kotlin-android = { id = ".jetbrains.kotlin.android", version.ref = "kotlin" }
> kotlin-kapt = { id = ".jetbrains.kotlin.kapt", version.ref = "kotlin" }
> hilt-android-gradle-plugin = { id = "com.google.dagger.hilt.android", version = "2.48" }
>
>
> Error ->
>
> Execution failed for task ':app:hiltAggregateDepsDebug'.
> > A failure occurred while executing dagger.hilt.android.plugin.task.AggregateDepsTask$WorkerAction
> > 'java.lang.String com.squareup.javapoet.ClassName.canonicalName()'
Here is my Gradle Library of the Project. I am facing this error while implementing Hilt DI. I am getting stuck here and not getting the solution I have tried different solutions like adding classpath to project gradle Tried adding different Libraries but nothing Work
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744191270a4562444.html
评论列表(0条)