Proguard keep interface method paramternames

别来无恙 提交于 2019-12-07 07:10:07

问题


I use -keepparameternames but it's not responding to interface.


The interface's methond parameter is proguard. Thank you for your help.

回答1:


Proguard can preserve parameter names just fine. Unfortunately, javac does not preserve them by default. In order to emit necessary attributes, make sure to compile your code with full debugging info enabled. Java 8 javac does this with -g and -parameters flags.

See this blogpost for some background.



来源:https://stackoverflow.com/questions/36685590/proguard-keep-interface-method-paramternames

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!