Dagger 2 “Dagger” prefix component not able to compile? auto generated class

前端 未结 8 3520
悲哀的现实
悲哀的现实 2021-02-20 18:44

Im trying to use Dagger 2 on android. I previously had it working and i had an appModule injecting dependencies into specific classes in the app. My Issue is that iam getting th

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 19:31

    This did the trick for me with the (current) latest dagger dependecies.

    `dependencies{
    ...
    compile 'com.google.dagger:dagger:2.11'
    compile 'com.google.dagger:dagger-android-support:2.11'
    annotationProcessor "com.google.dagger:dagger-compiler:2.11"
    }`
    

提交回复
热议问题