on dagger2 home page, it suggest use the annotation @FragmentKey to inject Fragment. But this Fragment is under the package android.app , but we usually use the Fragment that was under the package android.support.v4.app, so, how to fix this?
相关问题
- Can not resolve symbol for dagger component in and
- Injecting test module with dagger2
- Static provide method in Dagger2
- Error [Dagger/MissingBinding] androidx.lifecycle.V
- Dagger 2 : Cannot resolve symbol for dagger compon
相关文章
- Create Custom Dagger 2 Scope with Kotlin
- What are the advantages of using DispatchingAndroi
- Can not resolve symbol DaggerApplicationComponent
- Dagger 2 - how to create/provide a EagerSingleton
- Dagger2 Inherited subcomponent multibindings
- HasActivityInjector can not be resolved in android
- Kotlin dagger 2 Android ViewModel injection error
- Dagger 2 base class injections
The
dagger.android.support
library is designed for this. See the user guide (under "Android" -> "Support Libraries"), the javadoc, and the code.