How to obfuscate an Android library (.jar file) using Proguard in Eclipse

后端 未结 5 1828
青春惊慌失措
青春惊慌失措 2020-12-01 08:23

I have seen many posts about how to obfuscate an Android application (.apk file) using ProGuard in Eclipse. Also see http://developer.android.com/guide/developing/tools/pro

5条回答
  •  無奈伤痛
    2020-12-01 08:47

    Do not obfuscated your pure Java Jar. Skip that phase completely while producing the Jar (whether manually in Eclipse or via Ant build from command line).

    Instead, setup and perform proper obfuscation in the client project, the one using the Jar, where you add the library as external Jar. Proguard will be able to obfuscate code within the Jar too.

    I stumbled upon this issue, and ended up successfully as I described here.

提交回复
热议问题