error: [Dagger/MissingBinding] java.lang.String cannot be provided without an @Inject constructor or an @Provides-annotated method.
my class looks like this
Copy code
class InstructorProfileState @Inject constructor(
val instructorId: String
) {
sealed class ViewCommand {
class SetInstructorData(val instructor: Instructor) : ViewCommand()
}
val viewCommandStream = SingleLiveEvent<ViewCommand>()
}
j
Javier
06/26/2020, 5:40 PM
Are you providing this instructorId?
l
lawlorslaw
06/30/2020, 8:39 PM
im not. so i decided to take that param out of the constructor, since there was no straightforward way to provide it.