Dagger + Proguard obfuscation, Errors creating object graph

前端 未结 2 916
梦毁少年i
梦毁少年i 2020-12-19 21:59

Running an obfuscated version of my application throws the following stacktrace

java.lang.RuntimeException: Unable to create service com.mycompany.myapp.asyn         


        
2条回答
  •  时光取名叫无心
    2020-12-19 22:59

    I wasn't able to get Dagger 1.2 to work with ProGuard, and reading issue on Progruard github account I think I'm not alone - https://github.com/square/dagger/issues/202

    However, I've managed to get version 1.0.0 to work (without dagger-compiler!) with rules you mentioned above. Works fine in large Android apps, despite being quite old.

提交回复
热议问题