android proguard causes apk to crash - android

My app works fine in debug and also when I export to a signed apk if I have proguard disabled by commenting out "proguard.config=${sdk.dir}/tools/proguard..." in project.properties.
However, if I uncomment that line I get a bunch of warnings and proguard won't create the apk. I can suppress the warnings by adding the following lines to proguard-project.txt
-dontwarn com.sun.mail.imap.protocol.**
-dontwarn org.apache.harmony.awt.**
-dontwarn javax.activation.**
and the apk will get created but it will not execute in the phone. Interestingly, if I remove these lines and use "-dontshrink" I continue to get these errors. I would have thought that would get rid of the problem.
I found in http://developer.android.com/tools/help/proguard.html that I am probably missing some -keep lines in my configuration but it is not obvious what these would be. Can anyone provide a clue?
The default proguard.cfg file tries to cover general cases, but you
might encounter exceptions such as ClassNotFoundException, which
happens when ProGuard strips away an entire class that your
application calls.
You can fix errors when ProGuard strips away your code by adding a
-keep line in the proguard.cfg file. For example:
-keep public class
[2013-06-19 14:19:30 - Flashum2] Proguard returned with error code 1. See console
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.DataProxy: can't find superclass or interface java.awt.datatransfer.Transferable
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.NativeClipboard: can't find superclass or interface java.awt.datatransfer.Clipboard
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.Sasl
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.Sasl
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslException
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslException
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.auth.callback.NameCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.auth.callback.NameCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.auth.callback.NameCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2013-06-19 14:19:30 - Flashum2] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2013-06-19 14:19:30 - Flashum2] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2013-06-19 14:19:30 - Flashum2] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.GraphicsEnvironment
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.GraphicsEnvironment
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.GraphicsEnvironment
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.GraphicsEnvironment
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.DTK: can't find referenced class java.awt.datatransfer.DataFlavor
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.DTK: can't find referenced class java.awt.datatransfer.DataFlavor
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.DTK: can't find referenced class java.awt.datatransfer.DataFlavor
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.DTK: can't
.
.
.
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.SystemFlavorMap
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.DataFlavor
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.SystemFlavorMap
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.SystemFlavorMap
[2013-06-19 14:19:30 - Flashum2] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.DataFlavor
[2013-06-19 14:19:30 - Flashum2] You should check if you need to specify additional program jars.
[2013-06-19 14:19:30 - Flashum2] Warning: there were 247 unresolved references to classes or interfaces.
[2013-06-19 14:19:30 - Flashum2] You may need to specify additional library jars (using '-libraryjars').
[2013-06-19 14:19:30 - Flashum2] java.io.IOException: Please correct the above warnings first.
[2013-06-19 14:19:30 - Flashum2] at proguard.Initializer.execute(Initializer.java:321)
[2013-06-19 14:19:30 - Flashum2] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-06-19 14:19:30 - Flashum2] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-06-19 14:19:30 - Flashum2] at proguard.ProGuard.main(ProGuard.java:492)
Here is the list of jars in my libs folder if that helps:
05/31/2013 10:47 AM <DIR> .
05/31/2013 10:47 AM <DIR> ..
05/15/2012 09:22 AM 34,093 acra-3.1.2.jar
01/14/2013 09:07 AM 51,643 activation.jar
01/14/2013 09:06 AM 46,184 additionnal.jar
05/25/2013 04:14 PM 501,154 android-support-v13.jar
05/15/2012 09:22 AM 312,866 commons-lang3-3.0.1.jar
05/15/2012 09:22 AM 269,014 commons-net-3.0.1.jar
05/31/2013 10:47 AM 170,927 google-api-client-1.14.1-beta.jar
05/31/2013 10:47 AM 9,068 google-api-client-android-1.14.1-beta.jar
05/31/2013 10:47 AM 137,977 google-api-services-drive-v2-rev76-1.14.2-beta.jar
05/31/2013 10:47 AM 268,450 google-http-client-1.14.1-beta.jar
05/31/2013 10:47 AM 10,072 google-http-client-android-1.14.1-beta.jar
05/31/2013 10:47 AM 7,828 google-http-client-gson-1.14.1-beta.jar
05/31/2013 10:47 AM 6,038 google-http-client-jackson-1.14.1-beta.jar
05/31/2013 10:47 AM 6,076 google-http-client-jackson2-1.14.1-beta.jar
05/31/2013 10:47 AM 64,952 google-oauth-client-1.14.1-beta.jar
05/31/2013 10:47 AM 180,110 gson-2.1.jar
05/31/2013 10:47 AM 206,797 jackson-core-2.1.3.jar
05/31/2013 10:47 AM 232,131 jackson-core-asl-1.9.11.jar
05/31/2013 10:47 AM 33,015 jsr305-1.3.9.jar
01/14/2013 09:06 AM 440,508 mail.jar
05/15/2012 09:22 AM 134,421 zip4j_1.2.5.jar

Maybe a bit late, but searching for a solution to a similar problem, I learned that you have to tell proguard to keep some classes in your libs jars. Refer to the log where it says Warning: ... and can't find referenced class ....
So in your case should be:
-keep class javax.security.** { *; }
-keep class java.beans.** { *; }
-keep class java.awt.** { *; }
and
-libraryjars libs/XYZ.jar
for every jar into /libs containing those classes.

Related

ProGuard Cannot Find Referenced Libraries

[2014-07-15 23:57:43 - MozMeet] Proguard returned with error code 1. See console
[2014-07-15 23:57:43 - MozMeet] Note: there were 662 duplicate class definitions.
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook$ServiceListener
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$StatusCallback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionDefaultAudience
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook$ServiceListener
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session$StatusCallback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request$Callback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request$Callback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-07-15 23:57:43 - MozMeet] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-07-15 23:57:43 - MozMeet] You should check if you need to specify additional program jars.
[2014-07-15 23:57:43 - MozMeet] Warning: there were 95 unresolved references to classes or interfaces.
[2014-07-15 23:57:43 - MozMeet] You may need to specify additional library jars (using '-libraryjars').
[2014-07-15 23:57:43 - MozMeet] Error: Please correct the above warnings first.
This is the list of errors that I get when I try to export my Android app with ProGuard enabled. A little bit of Googling and I found that I need to add jar files to the proguard-project.txt. So far what I have added looks like this (but to no avail):
-keepattributes SourceFile,LineNumberTable
-keep class com.parse.*{ *; }
-libraryjars \libs\Parse-1.5.1.jar
-keepclasseswithmembernames class * {
native <methods>;
}
I also have 3 more libraries along with Parse namely Crashlytics, Picasso and V4 Support.
Made a few changes to proguard-project.txt file (if you have more than one module in your project - put it in the module which calls the *.jar file you are getting warned about):
-keepattributes SourceFile,LineNumberTable
-keep class com.parse.*{ *; }
-dontwarn com.parse.**
-dontwarn com.squareup.picasso.**
-keepclasseswithmembernames class * {
native <methods>;
}
The -dontwarn lines were needed. Basically what they tell ProGuard is that these jars work fine on their own so don't complain when you cannot find the classes they reference.

Android Proguard SqlCipher NoClassDefFoundError

Have been battling with Proguard all day and have tried many examples and solutions on the official Proguard site as well as StackOverflow.
I have a large project I need to obfuscate, which has a number of referenced library projects and Jars.
I am getting 725 warnings from proguard from 2 libs, com.google.common and twitter4j.
I can happily get the project to compile if I add the following:
-dontwarn com.google.common.**
-dontwarn twitter4j.**
However, the app crashes instantly on open, so this seems to just be a way of hiding an issue, not fixing it.
The proguard-project.txt is in the project root and its config is in the project.properties file as below.
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
Here is my proguard-project.txt file
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-dontshrink
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keep class javax.** { *; }
-keep class org.** { *; }
-keep class twitter4j.** { *; }
-keep class com.google.code.** { *; }
-keep class java.lang.management.** { *; }
-keep class com.google.common.** { *; }
-libraryjars C:/adt-bundle-windows/sdk/platforms/android-19/android.jar
-libraryjars C:/adt-bundle-windows/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/commons-codec.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/sqlcipher.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/twitter4j-core-3.0.3.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/guava-r09.jar
-libraryjars C:/adt-bundle-windows/sdk/platforms/android-19/android.jar
-libraryjars C:/adt-bundle-windows/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/maps.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/effects.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/usb.jar
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.content.Context {
public void *(android.view.View);
public void *(android.view.MenuItem);
}
-keepclassmembers class * implements android.os.Parcelable {
static ** CREATOR;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keepclassmembers class * {
#android.webkit.JavascriptInterface <methods>;
}
-dontwarn android.support.**
And Here is the truncated error log
[2014-01-13 14:00:07 - MyApp] Proguard returned with error code 1. See console
[2014-01-13 14:00:07 - MyApp] Note: there were 9032 duplicate class definitions.
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
*********************************** ANOTHER 500 LINES OF com.google.common ERRORS ******************************************
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
*********************************** ANOTHER 500 LINES OF twitter4j ERRORS ******************************************
[2014-01-13 14:00:07 - MyApp] You should check if you need to specify additional program jars.
[2014-01-13 14:00:07 - MyApp] Warning: there were 725 unresolved references to classes or interfaces.
[2014-01-13 14:00:07 - MyApp] You may need to specify additional library jars (using '-libraryjars').
[2014-01-13 14:00:07 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-01-13 14:00:07 - MyApp] at proguard.Initializer.execute(Initializer.java:321)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.main(ProGuard.java:492)
EDIT** Stack trace from crash, clearer now that it is linked to sqlcipher
E/Database(18203): Can't find SQLiteDatabase.mNativeHandle
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteCompiledSql
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteQuery
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteProgram
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteStatement
E/CursorWindow(18203): Can't find net/sqlcipher/CursorWindow
D/AndroidRuntime(18203): Shutting down VM
W/dalvikvm(18203): threadid=1: thread exiting with uncaught exception (group=0x415e9ba8)
E/AndroidRuntime(18203): FATAL EXCEPTION: main
E/AndroidRuntime(18203): Process: com.mycompany.android.myapp, PID: 18203
E/AndroidRuntime(18203): java.lang.NoClassDefFoundError: net/sqlcipher/CursorWindow
E/AndroidRuntime(18203): at java.lang.Runtime.nativeLoad(Native Method)
E/AndroidRuntime(18203): at java.lang.Runtime.doLoad(Runtime.java:421)
E/AndroidRuntime(18203): at java.lang.Runtime.loadLibrary(Runtime.java:362)
E/AndroidRuntime(18203): at java.lang.System.loadLibrary(System.java:526)
E/AndroidRuntime(18203): at net.sqlcipher.database.SQLiteDatabase.a(Unknown Source)
E/AndroidRuntime(18203): at net.sqlcipher.database.SQLiteDatabase.a(Unknown Source)
E/AndroidRuntime(18203): at com.mycompany.android.myapplib.sqlite.MyProvider.onCreate(Unknown Source)
E/AndroidRuntime(18203): at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime(18203): at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime(18203): at android.app.ActivityThread.installProvider(ActivityThread.java:4790)
E/AndroidRuntime(18203): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
E/AndroidRuntime(18203): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
E/AndroidRuntime(18203): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime(18203): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime(18203): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18203): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(18203): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(18203): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18203): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18203): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(18203): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(18203): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteStatement
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteProgram
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteQuery
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteCompiledSql
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoSuchFieldError: no field with name='mNativeHandle' signature='I' in class Lnet/sqlcipher/database/SQLiteDatabase;
E/AndroidRuntime(18203): ... 22 more
These are the config I've used in the past for SQLcipher
-keep public class net.sqlcipher.** {
*;
}
-keep public class net.sqlcipher.database.** {
*;
}
I'll suggest you to add thoses 2 lines in your proguard file :
-dontwarn javax.management.**
-dontwarn org.apache.commons.logging.**
-keep class net.sqlcipher.** { *; }
-dontwarn net.sqlcipher.**
For more information

Proguard suddenly errors

I am using Proguard in my app.
One day, it suddenly started to give me these errors. It's like Proguard can't find any of my classes.
What could I have done to trigger this and how can I fix this?
This is my proguard settings:
-keepattributes Signature
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-libraryjars adt-bundle-windows-x86_64/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars libs/FlurryAgent.jar
-libraryjars libs/libGoogleAnalyticsV2.jar
-libraryjars libs/crittercism_v3_0_7_sdkonly.jar
-libraryjars libs/gson-2.2.2.jar
-libraryjars libs/urbanairship-lib-2.1.4.jar
# Gson
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature
# Gson deserialization uses introspection to get the json entry names for the field names,
# so we do not want to change them.
-keep class com.ftbpro.data.model.** { *; }
# Admob & Analytics
-dontwarn com.google.ads.**
-keep public class com.google.** {*;}
# Flurry
-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
# Crittercism
-keep public class com.crittercism.**
-keepclassmembers public class com.crittercism.*
{
*;
}
#FB method signature workaround
-keep class com.facebook.** { *; }
-keep class android.webkit.WebViewClient
-keep class * extends android.webkit.WebViewClient
-keepclassmembers class * extends android.webkit.WebViewClient {
<methods>;
}
This are my libs:
-libraryjars libs/android-query.0.25.10.jar
-libraryjars libs/android-support-v4.jar
-libraryjars libs/FlurryAgent.jar
-libraryjars libs/nineoldandroids-2.4.0.jar
-libraryjars libs/libGoogleAnalyticsV2.jar
-libraryjars libs/crittercism_v3_0_7_sdkonly.jar
-libraryjars libs/gson-2.2.2.jar
-libraryjars libs/urbanairship-lib-2.1.4.jar
This is the error massages:
[2013-06-19 10:30:15 - FTBPro] Proguard returned with error code 1. See console
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find superclass or interface com.nineoldandroids.animation.Animator$AnimatorListener
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.FacebookFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.facebook.widget.FacebookFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.FriendPickerFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.facebook.widget.FriendPickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.FriendPickerFragment: can't find referenced method 'java.lang.String getString(int)' in class com.facebook.widget.FriendPickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.GraphObjectPagingLoader: can't find referenced method 'boolean isStarted()' in class com.facebook.widget.GraphObjectPagingLoader
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PickerFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.facebook.widget.PickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PickerFragment: can't find referenced method 'android.view.View getView()' in class com.facebook.widget.PickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PickerFragment: can't find referenced method 'java.lang.String getString(int)' in class com.facebook.widget.PickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PickerFragment$LoadingStrategy: can't find referenced method 'android.support.v4.app.LoaderManager getLoaderManager()' in class com.facebook.widget.PickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PickerFragment$LoadingStrategy: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.facebook.widget.PickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PlacePickerFragment: can't find referenced method 'android.view.View getView()' in class com.facebook.widget.PlacePickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PlacePickerFragment: can't find referenced method 'void onAttach(android.app.Activity)' in class com.facebook.widget.PickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PlacePickerFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.facebook.widget.PlacePickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PlacePickerFragment: can't find referenced method 'java.lang.String getString(int)' in class com.facebook.widget.PlacePickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.PlacePickerFragment$1: can't find referenced method 'java.lang.String getString(int,java.lang.Object[])' in class com.facebook.widget.PlacePickerFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.UserSettingsFragment: can't find referenced method 'android.content.res.Resources getResources()' in class com.facebook.widget.UserSettingsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.UserSettingsFragment: can't find referenced method 'void onCreate(android.os.Bundle)' in class com.facebook.widget.FacebookFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.UserSettingsFragment: can't find referenced method 'void setRetainInstance(boolean)' in class com.facebook.widget.UserSettingsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.UserSettingsFragment: can't find referenced method 'void onResume()' in class com.facebook.widget.FacebookFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.UserSettingsFragment: can't find referenced method 'boolean isAdded()' in class com.facebook.widget.UserSettingsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.facebook.widget.UserSettingsFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.facebook.widget.UserSettingsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.Application: can't find referenced class com.androidquery.callback.BitmapAjaxCallback
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.Application: can't find referenced class com.androidquery.callback.BitmapAjaxCallback
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.EventsFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.EventsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.EventsFragment: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.EventsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.EventsFragment$1: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.EventsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.EventsFragment$1: can't find referenced method 'android.content.Intent getIntent()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.EventsFragment$LiveEventsAdapter: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.EventsFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced method 'void startActivity(android.content.Intent)' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.callback.ImageOptions
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.callback.ImageOptions
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.callback.ImageOptions
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.callback.ImageOptions
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.AQuery
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment: can't find referenced class com.androidquery.callback.ImageOptions
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment$FeedListAdapter: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment$MorePostsLoaderTask: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment$NewPostsLoaderTask: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.FeedListFragment$PullToRefreshHeader: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.FeedListFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'void setContentView(int)' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'android.support.v4.app.FragmentManager getSupportFragmentManager()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'java.lang.String getString(int)' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'android.content.Intent getIntent()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'android.view.View findViewById(int)' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'void startActivity(android.content.Intent)' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity: can't find referenced method 'void finish()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$1: can't find referenced method 'void startActivity(android.content.Intent)' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$1: can't find referenced method 'void finish()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$DownloadLiveMatchTask: can't find referenced method 'android.content.Intent getIntent()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$DownloadLiveMatchTask: can't find referenced method 'android.content.res.AssetManager getAssets()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$DownloadLiveMatchTask: can't find referenced method 'android.view.View findViewById(int)' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$DownloadLiveMatchTask: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.LiveMatchActivity$DownloadLiveMatchTask: can't find referenced method 'void finish()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'void setContentView(int)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.view.View findViewById(int)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.support.v4.app.FragmentManager getSupportFragmentManager()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'java.lang.String getString(int)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'boolean isTaskRoot()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced class com.androidquery.util.AQUtility
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced class com.androidquery.util.AQUtility
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'void startActivityForResult(android.content.Intent,int)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'void startActivity(android.content.Intent)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.content.res.AssetManager getAssets()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.content.pm.PackageManager getPackageManager()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'java.lang.String getPackageName()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.content.ComponentName startService(android.content.Intent)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'android.view.WindowManager getWindowManager()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced method 'java.io.File getExternalFilesDir(java.lang.String)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced class com.androidquery.util.AQUtility
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced class com.androidquery.callback.BitmapAjaxCallback
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced class com.androidquery.callback.BitmapAjaxCallback
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity: can't find referenced class com.androidquery.callback.BitmapAjaxCallback
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity$LoadLiveMatchTask: can't find referenced method 'android.view.View findViewById(int)' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.MainActivity$PushNotificationsRegistrationTask: can't find referenced method 'android.content.ContentResolver getContentResolver()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning:
com.ftbpro.app.MainActivity$PushNotificationsRegistrationTask: can't find referenced method 'android.content.Context getApplicationContext()' in class com.ftbpro.app.MainActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.PaneFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.PaneFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.RankTableFragment: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.RankTableFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.RankTableFragment$DataLoaderTask: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.RankTableFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.RankTableFragment$DataLoaderTask: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.RankTableFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.RankTableFragment$RankAdapter: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.RankTableFragment
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator$AnimatorListener
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.ReactionsFragmet
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced method 'android.view.View getView()' in class com.ftbpro.app.ReactionsFragmet
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced method 'void startActivityForResult(android.content.Intent,int)' in class com.ftbpro.app.ReactionsFragmet
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.view.ViewPropertyAnimator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.view.ViewPropertyAnimator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.view.ViewPropertyAnimator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.view.ViewPropertyAnimator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.view.ViewPropertyAnimator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.view.ViewPropertyAnimator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced method 'android.content.res.Resources getResources()' in class com.ftbpro.app.ReactionsFragmet
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet: can't find referenced class com.nineoldandroids.animation.Animator
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet$PostAndGetReactions: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.ftbpro.app.ReactionsFragmet
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet$PostAndGetReactions: can't find referenced method 'android.support.v4.app.FragmentManager getSupportFragmentManager()' in class com.ftbpro.app.LiveMatchActivity
[2013-06-19 10:30:15 - FTBPro] Warning: com.ftbpro.app.ReactionsFragmet$PostAndGetReactions: can't find referenced method 'android.view.View getView()' in class com.ftbpro.app.ReactionsFragmet
[2013-06-19 10:30:15 - FTBPro] Warning: there were 39 unresolved references to classes or interfaces.
[2013-06-19 10:30:15 - FTBPro] You may need to add missing library jars or update their versions.
[2013-06-19 10:30:15 - FTBPro] If your code works fine without the missing classes, you can suppress
[2013-06-19 10:30:15 - FTBPro] the warnings with '-dontwarn' options.
[2013-06-19 10:30:15 - FTBPro] Warning: there were 76 unresolved references to program class members.
[2013-06-19 10:30:15 - FTBPro] Your input classes appear to be inconsistent.
[2013-06-19 10:30:15 - FTBPro] You may need to recompile the code or update the library versions.
[2013-06-19 10:30:15 - FTBPro] Alternatively, you may have to specify the option
[2013-06-19 10:30:15 - FTBPro] '-dontskipnonpubliclibraryclassmembers'.
[2013-06-19 10:30:15 - FTBPro] java.io.IOException: Please correct the above warnings first.
[2013-06-19 10:30:15 - FTBPro] at proguard.Initializer.execute(Initializer.java:330)
[2013-06-19 10:30:15 - FTBPro] at proguard.ProGuard.initialize(ProGuard.java:212)
[2013-06-19 10:30:15 - FTBPro] at proguard.ProGuard.execute(ProGuard.java:87)
[2013-06-19 10:30:15 - FTBPro] at proguard.ProGuard.main(ProGuard.java:484)
Thanks!
try to add these line very first on our proguard.cfg file on your project as below:
-ignorewarnings
add all references are checked on your project properties import and export like below screen shots:

fixing android proguard

This is the console output:
[2012-11-27 21:37:04 - com.generalquiz.SplashActivity] Proguard returned with error code 1. See console
[2012-11-27 21:37:04 - com.generalquiz.SplashActivity]
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Proguard returned with error code 1. See console
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find superclass or interface com.paypal.android.MEP.PayPalResultDelegate
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.datatransfer.DataProxy: can't find superclass or interface java.awt.datatransfer.Transferable
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.datatransfer.NativeClipboard: can't find superclass or interface java.awt.datatransfer.Clipboard
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController$1: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController$1: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.Sasl
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.GraphicsEnvironment
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] at proguard.Initializer.execute(Initializer.java:321)
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] at proguard.ProGuard.initialize(ProGuard.java:211)
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] at proguard.ProGuard.execute(ProGuard.java:86)
[2012-11-27 21:40:45 - com.generalquiz.SplashActivity] at proguard.ProGuard.main(ProGuard.java:492)
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Proguard returned with error code 1. See console
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find superclass or interface com.paypal.android.MEP.PayPalResultDelegate
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.datatransfer.DataProxy: can't find superclass or interface java.awt.datatransfer.Transferable
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.datatransfer.NativeClipboard: can't find superclass or interface java.awt.datatransfer.Clipboard
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.fortumo.FortumoPaymentProvider$1: can't find referenced class com.fortumo.android.Fortumo
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.fortumo.FortumoPaymentProvider$1: can't find referenced class com.fortumo.android.Fortumo
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.fortumo.FortumoPaymentProviderController: can't find referenced class com.fortumo.android.FortumoActivity
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalResultDelegate
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController: can't find referenced class com.paypal.android.MEP.PayPalPayment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController$1: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController$1: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController$1: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.scoreloop.client.android.core.paymentprovider.paypalx.PayPalXPaymentProviderController$1: can't find referenced class com.paypal.android.MEP.PayPal
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.Sasl
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.Sasl
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslException
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslClient
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.SaslException
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.auth.callback.NameCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.auth.callback.NameCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.auth.callback.NameCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator$1: can't find referenced class javax.security.sasl.RealmChoiceCallback
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.GraphicsEnvironment
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.SystemFlavorMap
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.DataFlavor
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] You should check if you need to specify additional program jars.
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] Warning: there were 268 unresolved references to classes or interfaces.
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] You may need to specify additional library jars (using '-libraryjars').
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] java.io.IOException: Please correct the above warnings first.
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] at proguard.Initializer.execute(Initializer.java:321)
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] at proguard.ProGuard.initialize(ProGuard.java:211)
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] at proguard.ProGuard.execute(ProGuard.java:86)
[2012-11-27 21:44:45 - com.generalquiz.SplashActivity] at proguard.ProGuard.main(ProGuard.java:492)
And my proguard.cfg :
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keep class com.scoreloop.client.android.core.** { *; }
-keep class com.facebook.android.** { *; }
I searched about proguard but it's not clear for me how to fix this. and what i should write in the proguard.cfg and if i ignered any class means it won't obfuscate the code?
You may add in your configuration:
-dontwarn com.sun.mail.imap.protocol.**
-dontwarn com.scoreloop.client.android.core.paymentprovider.paypalx.**
...
To disable obfuscation completely, add
-dontobfuscate
If you prefer to have obfuscation I think you need to mark the classes it can't find at runtime with -keep
Here is a good resource I've used in the past: http://proguard.sourceforge.net/index.html#/manual/optimizations.html

Android Proguard skip external jar

I tried to use Proguard in my Android project, i setup Proguard using command line 'android update project /path/to/project' and file proguard.cfg was created in project's root directory. (In my Eclipse with Android 2.3 sdk, when create a new project, proguard.cfg file is not automatically created so i have to add it manually using command line).
When i export the project, i got the following errors
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.io.Buffer
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.Address
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.io.Buffer
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.Address
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.JettyOAuthConsumer: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2011-02-06 09:02:49 - TestProject] You should check if you need to specify additional program jars.
[2011-02-06 09:02:49 - TestProject] Warning: there were 59 unresolved references to classes or interfaces.
[2011-02-06 09:02:49 - TestProject] You may need to specify additional library jars (using '-libraryjars'),
[2011-02-06 09:02:49 - TestProject] or perhaps the '-dontskipnonpubliclibraryclasses' option.
[2011-02-06 09:02:49 - TestProject] java.io.IOException: Please correct the above warnings first.
[2011-02-06 09:02:49 - TestProject] at proguard.Initializer.execute(Initializer.java:308)
[2011-02-06 09:02:49 - TestProject] at proguard.ProGuard.initialize(ProGuard.java:210)
[2011-02-06 09:02:49 - TestProject] at proguard.ProGuard.execute(ProGuard.java:85)
[2011-02-06 09:02:49 - TestProject] at proguard.ProGuard.main(ProGuard.java:499)
These error messages point to four external jars used in my project
(.classpath)
<classpathentry kind="lib" path="/Users/lorensiuswlt/Android/android-sdk-mac_x86/libs/Twitter/signpost-commonshttp4-1.2.1.1.jar"/>
<classpathentry kind="lib" path="/Users/lorensiuswlt/Android/android-sdk-mac_x86/libs/Twitter/signpost-core-1.2.1.1.jar"/>
<classpathentry kind="lib" path="/Users/lorensiuswlt/Android/android-sdk-mac_x86/libs/Twitter/signpost-jetty6-1.2.1.1.jar"/>
<classpathentry kind="lib" path="/Users/lorensiuswlt/Android/android-sdk-mac_x86/libs/Twitter/twitter4j-core-2.1.6.jar"/>
Here is my proguard.cfg file
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
I've tried some solutions found on web by adding '-libraryjars' option, ex:
-libraryjars /Users/lorensiuswlt/Android/android-sdk-mac_x86/libs/Twitter/twitter4j-core-2.1.6.jar
but it won't help.
Any solutions?
Your library jars refer to yet more library jars (Mortbay, SLF4J, Apache Commons Logging, Log4j, ...) Adding these jars with extra '-libraryjars' options should solve the problem.
If you are absolutely sure that your code doesn't use these libraries, you can specify '-ignorewarnings' or '-dontwarn', e.g.
-dontwarn org.mortbay.**
-dontwarn org.slf4j.**
-dontwarn org.apache.log4j.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.apache.commons.codec.binary.**

Categories

Resources