Android proguard, keep inner class

后端 未结 6 1710
故里飘歌
故里飘歌 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条回答
  •  Happy的楠姐
    2020-11-30 08:00

    This is what I had to do for my config

    -keep class com.xxx.A { *; }
    -keep class com.xxx.A$B { *; }
    -keep class com.xxx.A$C { *; }
    

提交回复
热议问题