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
Getting the above error with the "Full Reflection" approach.
val applicationComponent = Dagger.builder(DaggerApplicationComponent.Builder::class.java)
.application(this)
.build()
@ApplicationScope
@Component(modules = [ApplicationModule::class, ActivityLifecycleModule::class])
interface ApplicationComponent {
val application: Application
val myApplication: MyApplication
@ApplicationScope
val deviceInfo: DeviceInfo
fun callbacks(): Set<Application.ActivityLifecycleCallbacks>
@Component.Builder
interface Builder {
fun build(): ApplicationComponent
@BindsInstance
fun application(application: MyApplication): Builder
}
}
because the generated class is indeed private:
private static final class Builder implements ApplicationComponent.Builder {
private AmexApplication application;
@Override
public Builder application(AmexApplication application) {
this.application = Preconditions.checkNotNull(application);
return this;
}
@Override
public ApplicationComponent build() {
Preconditions.checkBuilderRequirement(application, AmexApplication.class);
return new DaggerApplicationComponent(new ApplicationModule(), new CoroutineCallbacksModule(), new LoggingCallbacksModule(), application);
}
}
The text was updated successfully, but these errors were encountered:
ber4444
changed the title
Cannot access 'Builder': it is private in 'DaggerBaseComponent'
Cannot access 'Builder': it is private in 'DaggerApplicationComponent'
Jun 10, 2020
Getting the above error with the "Full Reflection" approach.
because the generated class is indeed private:
The text was updated successfully, but these errors were encountered: