문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top