I‘m using ProGuard with my android application and I‘m running getting the warnings below in my build log. I‘ve added the appropriate ‘-keep public class com.foo.OtherClass { public static *; }‘ statement to my proguard.cfg file, but I still get the warnings. My app runs fine and is dynamically accessing the class correctly. Is it possible to suppress these warnings?
How to suppress 'Maybe this is program method' warnings from ProGuard
Posted sunshine_kaka
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to suppress 'Maybe this is program method' warnings from ProGuard相关的知识,希望对你有一定的参考价值。
|
[proguard] Note: com.foo.MyClass accesses a method ‘getInstance()‘ dynamically
[proguard] Maybe this is program method ‘com.foo.OtherClass { com.foo.OtherClass getInstance(); }‘
15down voteaccepted
|
You can avoid it by explicitly mentioning the method in the configuration:
Alternatively, you can suppress notes on a class:
|
以上是关于How to suppress 'Maybe this is program method' warnings from ProGuard的主要内容,如果未能解决你的问题,请参考以下文章
How to Execute Page_Load() in Page's Base Class?
How to stay calm when you know you'll be stressed
How to create a OnCellDblClick for Delphi's TDBGrid
(27)How to stay calm when you know you'll be stressed