So, I’m trying to get the ADT’s built-in proguard implementation working for my app. Unfortunately, it seems to be choking on various classes in third-party libraries I references.
I’ve tried various, if not all, the combinations of -libraryjars and -keep public class lines I can think of, but it’s all to no good. I’m not that experienced with Proguard, so honestly, I don’t know where I’m going wrong. I’ve tried google, but most of the information relates to Ant scripts.
Some of the things I’ve tried:
-
Lines like -libraryjars C:\Users\Dave\workspace\Dropbox_Sync_for_Tasker_and_Locale\lib\apache-mime4j-0.6.jar at the top or bottom of the file
-
Lines attempting to make paths to jars like that relatively, to no success at all.
-
Lines like -keep public class org.apache.commons.logging.LogFactory
-
Line that refer to the other part of the error lines, like -keep public class org.apache.james.mime4j.field.MailboxListField
Anyway, the error log is a huge wall of text, so I’ve put it on a pastebin here.
So, if you happen to find this answer, and are like, hm, I have that problem too, I wish he posted his solution, you’re half in luck.
The way I fixed it was to just stick the -libraryjars lines in there, and then
And it worked fine. It’s a hack, and it’s dirty, but it solved it for me. Unfortunately, you’re still on your own if you too have this problem.