In section #8 we are injecting MainActivity in AppComponent as following
(application as MyApplication).appComponent.inject(this)
which has to be removed in section #13 when updating main activity.
This piece of instruction is missing from the code lab.
Reference : https://developer.android.com/codelabs/android-dagger#12
In section #8 we are injecting MainActivity in AppComponent as following
(application as MyApplication).appComponent.inject(this)
which has to be removed in section #13 when updating main activity. This piece of instruction is missing from the code lab. Reference : https://developer.android.com/codelabs/android-dagger#12