WISHY
WISHY

Reputation: 11999

Proguard error android, unable to access jar file

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.

Upvotes: 2

Views: 3608

Answers (2)

Peri Hartman
Peri Hartman

Reputation: 19474

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.

Upvotes: 0

Marcin
Marcin

Reputation: 2409

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.

Upvotes: 5

Related Questions