How to create an obfuscated jar file?

后端 未结 5 954
故里飘歌
故里飘歌 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:40

    If it is an external jar, then if you have it in "libs" folder and compile with say Android 2.2+ SDK, it automatically uses proguard to obfuscate the apk. If you want this jar as a library and also obfuscate it before using it in your apk, then it may not be possible. If you are talking of apk obfuscation than Android does this from 2.2 on I think (with proguard), and you dont have to worry about it.

提交回复
热议问题