dagger android support to androidx.fragment

后端 未结 7 1854
孤城傲影
孤城傲影 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:22

    Add the following to your gradle.properties file

    android.useAndroidX = true
    android.enableJetifier = true
    

提交回复
热议问题