You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "non existing" type here is a class that's generated by the navigation library. It used to be picked up with Hilt using Kapt.
I've tried looking for any extra setup that I might be missing, but I might have overlooked something.
e: [ksp] AssistedInjectProcessingStep was unable to process 'HallwayTabViewModel(com.clubhouse.android.ui.hallway.HallwayTabViewState,com.clubhouse.session.di.SessionComponentHandler,com.clubhouse.android.shared.auth.UserManager,com.clubhouse.android.error.ErrorMessageFactory)' because 'error.NonExistentClass' could not be resolved.
Dependency trace:
=> element (CLASS): com.clubhouse.android.ui.hallway.HallwayTabViewModel
=> element (METHOD): handleDeeplinkArguments(error.NonExistentClass)
=> element (PARAMETER): args
=> type (ERROR parameter type): error.NonExistentClass
If type 'error.NonExistentClass' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'error.NonExistentClass' is on your classpath.
The root cause of this is similar to the one regarding ViewBinding generated classes (#4051) or the AGP BuildConfig generated class (#4049), which is that the Navigation Safe Args plugins is generating classes that are not being wired as inputs for KSP hence Dagger is unable to resolve them.
androidComponents {
onVariants(selector().all()) { variant ->
afterEvaluate {
// This is a workaround for https://issuetracker.google.com/301245705 which depends on internal
// implementations of the android gradle plugin and the ksp gradle plugin which might change in the future
// in an unpredictable way.
val dataBindingTask = this.project.tasks.named ("dataBindingGenBaseClasses" + variant.name.capitalize()).get() as com.android.build.gradle.internal.tasks.databinding.DataBindingGenBaseClassesTask
if (dataBindingTask != null) {
project.tasks.getByName("ksp" + variant.name.capitalize() + "Kotlin") {
(this as org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool<*>).setSource(dataBindingTask.sourceOutFolder)
}
}
}
}
}
Note: I think this is mostly needed because KSP is currently missing information in their error types so that we can't even get the simple name of the type used in the code (google/ksp#1232). Once that bug is fixed, I imagine we would start reporting that rather than the generic error.NonExistentClass.
The "non existing" type here is a class that's generated by the navigation library. It used to be picked up with Hilt using Kapt.
I've tried looking for any extra setup that I might be missing, but I might have overlooked something.
The param is using an assisted inject here
The text was updated successfully, but these errors were encountered: