Android ProGuard Unable to access jarfile ..\lib\proguard.jar in IntelliJ 11.1

德耀 李 picture 德耀 李 · Mar 29, 2012 · Viewed 10.3k times · Source

I have a problem about Unable to access jarfile ..\lib\proguard.jar when run Export Singed Application Package from IntelliJ 11.1.

Environment:

  • Run proguard is success in Android SDK r16.
  • Run proguard is failed in Android SDK r17.

The problem is IntelliJ setting error or IntelliJ 11 bug?

Answer

exslim picture exslim · Mar 29, 2012

Edit $ANDROID_SDK\tools\proguard\bin\proguard.bat and set absolute path to PROGUARD_HOME

May look like this:

SET PROGUARD_HOME="c:\android-sdk\tools\proguard"
java -jar "%PROGUARD_HOME%"\lib\proguard.jar %*