ProGuard SimException

后端 未结 1 1985
一向
一向 2021-01-27 02:26

I\'m trying to get ProGuard to work, after roughly 4 hours of randomly trying options to try and get this amazing software to work.

My project is using LibGDX and KryoNe

相关标签:
1条回答
  • 2021-01-27 02:50

    The problem might be related to a specific optimization of ProGuard. You can disable it like that:

    -optimizations !code/allocation/variable
    

    Furthermore you can also remove the LocalVariableTable and LocalVariableTypeTable attributes which do not seem to be updated properly (and are not needed in an application anymore). For this you would need to enable obfuscation though and then use something like:

    -keepattributes !LocalVariable*,**
    

    This rule would keep all attributes but the LocalVariable related ones.

    The obfuscation problem with libGDX might be solved by this rule:

    # Keep names - Native method names. Keep all native class/method names.
    -keepclasseswithmembers,includedescriptorclasses class * {
        native <methods>;
    }
    
    0 讨论(0)
提交回复
热议问题