how to avoid warnings in ProGuard GUI

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:22:01

问题


While trying to use ProGuard (5.3.2) to obfuscate a Automation framework getting lot of warnings i've resolved most of the warnings by adding respective library's but could not able to resolve below warnings. i have tried by adding com.hibernate-core jar but still getting same.

Warning: com.test.utils.DBOperations: can't find referenced method 'org.hibernate.Session openSession()' in library class org.hibernate.SessionFactory
Warning: com.test.utils.DBOperations: can't find referenced method 'void close()' in library class org.hibernate.Session

I have tried searching for a solution but the answer would always be for an android application.


回答1:


I have find there is an option that I can select inside the Proguard GUI. Please check the picture:

This method is good for obfuscation the class name or method name inside the .jar file.

If you want to ignore the warning when creating from android studio or eclipse... just put some "-dontwarn" or "-ignorewarning" command inside the proguard-rule.pro file.



来源:https://stackoverflow.com/questions/41936187/how-to-avoid-warnings-in-proguard-gui

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