5

When i try to use proguard on my application it prints out this error. :

C:\Users\ahmooza\Desktop\proguard4.11\lib>"C:/Program Files/Java/jdk1.8.0/bin/ja
va.exe" -jar proguard @myconfig.pro
Error: Unable to access jarfile proguard

C:\Users\ahmooza\Desktop\proguard4.11\lib>"C:/Program Files/Java/jdk1.8.0/bin/ja
va.exe" -jar proguard.jar @myconfig.pro
ProGuard, version 4.11
Reading program jar [C:\Users\ahmooza\Desktop\proguard4.11\lib\Monitor.jar]
Error: Can't read [C:\Users\ahmooza\Desktop\proguard4.11\lib\Monitor.jar] (Can't
process class [org/Shed/Common/Counter$1.class] (Unsupported class version numb
er [52.0] (maximum 51.0, Java 1.7)))

So i reverted all code that uses java 8 and now no code uses java 8 and i still get this error

Shed
  • 97
  • 1
  • 7

2 Answers2

9

ProGuard version 5.0 supports Java 8. At this time of writing, it is in beta. You can download it from Sourceforge.

Eric Lafortune
  • 45,150
  • 8
  • 114
  • 106
1

Try java compiler setting, src=1.7 target = 1.7
Proguard works on processing the byte code.
You have to avoid all java1.8 features.

AlexWien
  • 28,470
  • 6
  • 53
  • 83