and now i get this error: ```error: [Dagger/Missi...
# android
l
and now i get this error:
Copy code
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
Are you providing this instructorId?
l
im not. so i decided to take that param out of the constructor, since there was no straightforward way to provide it.
i finally got the whole Hilt set up working.
138 Views