Question

This is the first time I am using progurad and getting the following error on exporting signed apk.

Error: Unable to access jarfile ..\lib\proguard.jar

I uncommented the proguard.config= line

   # To enable ProGuard to shrink and obfuscate your code, uncomment this (available   properties: sdk.dir, user.home):
   proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

But there still seems to be some issue. What is needed to fix it.

Was it helpful?

Solution

Sounds like a known bug in ADT 22.6 https://code.google.com/p/android/issues/detail?id=66733

Fortunately, working around that bug is easy. On Windows, simply edit proguard.bat and provide an absolute path to the proguard.jar file.

OTHER TIPS

I think the bug happens when you update from an older version of eclipse. A better fix is this:

Find the PROGUARD_HOME environment variable in the Windows system settings. Change it to the proguard directory, e.g.:

C:\Program Files\eclipse-helios\sdk\tools\proguard

Then, exit and restart eclipse so will read the new setting.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top