Colton Idle
06/09/2020, 11:59 PM@Module
class NetworkModule constructor(@Inject public var url: String)
but when I look at the decompiled code in java I see:
public final class NetworkModule {
@Inject
@NotNull
private String url;
This is the error I'm trying to figure out "error: Dagger does not support injection into private fields
private java.lang.String url;"
Not necessarily a dagger issue, but somehow creating a private field in java even though I specify it to be public in kotlin?Joe
06/10/2020, 12:02 AM@Inject constructor(....)
instead? (ie, mark the constructor itself as the injection point instead of the argument)Colton Idle
06/10/2020, 12:02 AMdephinera
06/10/2020, 5:50 AM