Android proguard, keep inner class

后端 未结 6 1682
故里飘歌
故里飘歌 2020-11-30 07:12

My android program has a class A, which has two static inner class. They are found to be stripped from .dex after applying proguard.

6条回答
  •  攒了一身酷
    2020-11-30 07:57

    if you don't want all inner class and members in some package to be obfuscated you can add lines in proguard-rules.pro

        -keep class com.xxx.task.*$* {
            *;
        }
    

提交回复
热议问题