dagger android support to androidx.fragment

后端 未结 7 1863
孤城傲影
孤城傲影 2021-02-07 02:47

How to inject a fragment from the package androidx.fragment.app.Fragment ?

I\'m using the dagger-android framework to inject my dependencies in

相关标签:
7条回答
  • 2021-02-07 03:43

    Just for reference. i had the same problem. It was Jetifier issue. please upgrade your gradle build tools plugin to 3.3.0

            classpath 'com.android.tools.build:gradle:3.3.0' 
    

    Sample code: https://github.com/jega-ms/android-dagger2-mvp-rx

    0 讨论(0)
提交回复
热议问题