My Proguard builds are used to work in earlier versions of the Android SDK (up to 10), but no more, and its a very simple error - see below:
C: \ development \ android-sdk-windows \ tools \ ant \ main_rules.xml: 453: Unknown parameter '-optimizationpasses' on line 1 of the file' C: \ Users \ Richard \ Desktop \ CodeWordTEST \ p roguard.cfg
i.e. proguard fails on the first line. Interestingly, if I remove the '-optimizationpasses' command, it will be able to advance a bit in the proguard parameters, but then it will fail to execute the '-dontpreverify'
Something seems to have changed, so I went back to the basics.
I built the project from the command line to get the default files build.xml and proguard.cfg.
Still the same error.
Environment:
proguard.cfg contents (= default as automatically generated by cmd android line):
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimization! code / simplification / arithmetic ,! field /, class / merge /
etc...
Any ideas that might cause the problem?
Thanks in advance...
source share