How to create an obfuscated jar file?

后端 未结 5 1063
故里飘歌
故里飘歌 2021-02-02 03:23

How can I go about creating an obfuscate jar file? As of now I can easily export my Android lib project to a jar and use it. How do I obfuscate the jar file?

My end goa

5条回答
  •  暖寄归人
    2021-02-02 03:30

    Turns out it is possible and it's not that hard. After 3hrs of trying I finally figured it out!

    Android provides a convenient proguard GUI under:

    android-sdk\tools\proguard

    Using the GUI you just select the in.jar and the out.jar. Than you must select the android.jar and remove the selected default rt.jar.

    Once that's done you must carefully select the Shrinking and Obfuscation options.

    I hope in some way or another this helps!

提交回复
热议问题