Joan Colmenero
04/30/2020, 11:12 AMjava.lang.RuntimeException: android.app.Application does not implement dagger.android.HasAndroidInjectorAny idea, why? It only happens with UI tests, the app runs and everything is injected correctly.
Jovan
04/30/2020, 11:15 AMwasyl
04/30/2020, 11:19 AMAndroidJUnitRunner
) and override fun newApplication
method to call something like super.newApplication(cl, TestApplication::class.java.name, context)
wasyl
04/30/2020, 11:19 AMandroid.defaultConfig.testInstrumentationRunner = <your custom runner>
wasyl
04/30/2020, 11:20 AMJoan Colmenero
04/30/2020, 11:23 AMJoan Colmenero
04/30/2020, 11:24 AM