weakwire
weakwire

Reputation: 9300

Proguard android error

I followed these instructions and performed these modifications.

When i try to export my application with the default proguard.cfg config i get this error

[2011-11-01 20:32:18 - ] Proguard returned with error code 1. See console [2011-11-01 20:32:18 - ] java.io.IOException: Can't read [C:\Program Files\Android\android-sdk-windows\add-ons\addon_google_apis_google_inc_13\libs\usb.jar] (No such file or directory) [2011-11-01 20:32:18 - ] at proguard.InputReader.readInput(InputReader.java:230) [2011-11-01 20:32:18 - ] at proguard.InputReader.readInput(InputReader.java:200) [2011-11-01 20:32:18 - ] at proguard.InputReader.readInput(InputReader.java:178) [2011-11-01 20:32:18 - ] at proguard.InputReader.execute(InputReader.java:100) [2011-11-01 20:32:18 - ] at proguard.ProGuard.readInput(ProGuard.java:196) [2011-11-01 20:32:18 - ] at proguard.ProGuard.execute(ProGuard.java:78) [2011-11-01 20:32:18 - ] at proguard.ProGuard.main(ProGuard.java:492)

i cannot understand why usb.jar is asked. Anyone know something about it?

I use proguard 4.6 .

Upvotes: 0

Views: 1181

Answers (1)

Eric Lafortune
Eric Lafortune

Reputation: 45648

usb.jar is present in my install (addon_google_apis_google_inc_13/libs, on Linux) and it is also listed in addon_google_apis_google_inc_13/manifest.ini. Presumably, the build process therefore adds it to the class path (irrespective of the ProGuard version or configuration). ProGuard complains if any jars in the specified class path are missing. You should check where the jar has gone.

Upvotes: 1

Related Questions