How can I check/upgrade Proguard version whn using it in Eclipse for Android development?

旧巷老猫 提交于 2019-11-28 18:14:48
Eric Lafortune

The ProGuard jar is located inside the Android SDK: android-sdk/tools/proguard/lib/proguard.jar

You can print out its version number with

java -jar android-sdk/tools/proguard/lib/proguard.jar

(with the proper path). If necessary, you can replace the jar (actually, the entire proguard subdirectory) with the latest version from the download page at the official ProGuard site.

For the visually inclined, the version of Proguard can also be checked by double clicking on proguardgui.jar in ...\android-sdk\tools\proguard\lib

sschuberth

Quoting my own answer from over here, you can override the ProGuard version like so:

buildscript {
    configurations.all {
        resolutionStrategy {
            force 'net.sf.proguard:proguard-gradle:5.3.2'
        }
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!