Dagger cannot create object graph although it can produce dot file

前端 未结 4 2226
盖世英雄少女心
盖世英雄少女心 2021-02-06 12:50

I\'m struggling with the setup of Dagger (1.0.1), in a existing application. It was configured to use ProGuard but I disabled it for this test with -dontobfuscate.<

4条回答
  •  眼角桃花
    2021-02-06 13:07

    I got the app to start after adding -dontshrink to the ProGuard config file. Having -dontobfuscate at the beginning was not enough.

    In fact, if I remove -dontobfuscate it also works.

    I definitely need finer control for this but it's a starting point. My current ProGuard setup for Dagger is:

    #############
    #   Dagger  #
    #############
    
    -keep class dagger.** { *; }
    -dontwarn dagger.internal.codegen.**
    

提交回复
热议问题