https://kotlinlang.org logo
#android
Title
# android
l

lawlorslaw

06/26/2020, 3:56 PM
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

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.
i finally got the whole Hilt set up working.
112 Views