Dagger 2 Build IllegalArgumentException compileDebugJavaWithJavac

后端 未结 2 1337
春和景丽
春和景丽 2021-02-05 21:21

I have been testing out Dagger 2, and everything had been working, until I did a bit of refactoring. Now gradle is throwing an IllegalArgumentException, and I canno

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 21:42

    This is not yet solved in dependency dagger2.0 still throws IllegalArgumentException, I agree with @KATHYxx's approach to solve it in dagger2.0 But square has solved the inject in dagger2.7 version. So, updating the dependency fixed the issue

    implementation "com.google.dagger:dagger:2.7"
    apt "com.google.dagger:dagger-compiler:2.7"
    

提交回复
热议问题