Proguard returned with error code 1. troubleshooting exceptions
Proguard returned with error code 1.see Console
Case 1:
Proguard returned with error code 1. See Console
Error: C:/documents (the specified file cannot be found)
Later, it was found that the entire project was placed on the desktop, and the desktop directory was C:/Documents and Settings/Administrator/desktop, where there was a space, when proguard is used for sending and compiling, spaces are not allowed.
If the correct path is not easy to use, simply delete proguard.
Note: It is best not to have a space character in the SDK and program path.
Case 2:
Proguard returned with error code 1. See Console
Exception:
Java. Lang. arrayindexoutofboundsexception
Solution: Set"-Dontpreverify"-Dontoptimize"
I deleted the proguard folder generated in the project (the folder is empty at this time), and then re-run the project, it will be OK.
Case 3:
[2012-11-28 21:31:23-logo] proguard returned with error code 1. See Console
[2012-11-28 21:31:23-logo] java. Io. ioexception: Can't read [proguard. classpathentry @ 1a0b53e] (no such file or directory)
[21:31:23-logo] At proguard. inputreader. readinput (inputreader. Java: 230)
[21:31:23-logo] At proguard. inputreader. readinput (inputreader. Java: 200)
[21:31:23-logo] At proguard. inputreader. readinput (inputreader. Java: 178)
[21:31:23-logo] At proguard.inputreader.exe cute (inputreader. Java: 100)
[21:31:23-logo] At proguard. proguard. readinput (proguard. Java: 195)
[2012-11-28 21:31:23-logo] At proguard.proguard.exe cute (proguard. Java: 78)
[21:31:23-logo] At proguard. proguard. Main (proguard. Java: 499)
The cause of this exception is that the reference path of the third-party jar is incorrect and the obfuscation jar package to be ignored is not found.