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
When doing android injection the verbose way (without ContributesAndroidInjection), calling AndroidInjection.inject() will not actually do anything (fields will not be injected).
Above code is supposed to print Injected string: Test into logcat when activity starts, but instead it crashes with lateinit property injectedString has not been initialized since injection was not performed.
Running this with normal annotation processing dagger works fine.
Reproduced with:
implementation 'com.google.dagger:dagger-android:2.24'
// Reproduced on Sun Aug 11 03:26:53 UTC snapshot
implementation 'com.jakewharton.dagger:dagger-reflect:0.2.0-SNAPSHOT'
The text was updated successfully, but these errors were encountered:
When doing android injection the verbose way (without
ContributesAndroidInjection
), callingAndroidInjection.inject()
will not actually do anything (fields will not be injected).This is after applying workaround for the #170.
Sample code:
Above code is supposed to print
Injected string: Test
into logcat when activity starts, but instead it crashes withlateinit property injectedString has not been initialized
since injection was not performed.Running this with normal annotation processing dagger works fine.
Reproduced with:
The text was updated successfully, but these errors were encountered: