I have added the latest Google Play Services to the project and now proguard is giving
me many warnings:
[2014-07-31 17:21:50 - MyApp] Proguard returned with error code 1. See console
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced method 'void setShowsDialog(boolean)' in class com.google.android.gms.common.SupportErrorDialogFragment
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.google.android.gms.common.api.d
[2014-07-31 17:21:50 - MyApp] You should check if you need to specify additional program jars.
[2014-07-31 17:21:50 - MyApp] Warning: there were 9 unresolved references to classes or interfaces.
[2014-07-31 17:21:50 - MyApp] You may need to specify additional library jars (using '-libraryjars').
[2014-07-31 17:21:50 - MyApp] Warning: there were 2 unresolved references to program class members.
[2014-07-31 17:21:50 - MyApp] Your input classes appear to be inconsistent.
[2014-07-31 17:21:50 - MyApp] You may need to recompile them and try again.
[2014-07-31 17:21:50 - MyApp] Alternatively, you may have to specify the option
[2014-07-31 17:21:50 - MyApp] '-dontskipnonpubliclibraryclassmembers'.
[2014-07-31 17:21:50 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-07-31 17:21:50 - MyApp] at proguard.Initializer.execute(Initializer.java:321)
[2014-07-31 17:21:50 - MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-07-31 17:21:50 - MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-07-31 17:21:50 - MyApp] at proguard.ProGuard.main(ProGuard.java:492)
I have tried adding
-dontwarn com.google.android.gms.*
-keep class android.support.v4.** { *; }
to the proguard configuration fil but with no luck. I am targeting android 17 (4.2.2) in my app and the min SDK version is 8 (2.2 I think).
Any help solving this error will be appreciated.
Make sure you have setup your project with Android 4.4.2 and you have "include android- support-v13.jar". I have the same problem but it's fixed now.
Did you add:
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames #com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
#com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
In your Proguard?
http://developer.android.com/google/play-services/setup.html
Seems the google play service jar is referencing some classes from android-support-v13.jar.
So adding following line in proguard-project.txt will solve the problem:
-libraryjars <ANDROID_SDK_PATH>/extras/android/support/v13/android-support-v13.jar
You need to download this jar using Android SDK manager.
Related
I have had an adroid application that compiled in release version (signed application version) just fine. I have upgraded to flurry analytics 6.1.0 and now I get a whole lot of errors while making a release APK.
The errors are:
3:05:56 - MyApp] Proguard returned with error code 1. See console
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$1$1: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$2: can't find referenced class com.flurry.sdk.dz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$2: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$2: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$2: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$2: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.Post$2: can't find referenced class com.flurry.sdk.dz$a
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ej
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ff
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.gz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ej
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ej
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ej
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ej
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.ff
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.gz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.gz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.android.tumblr.TumblrShare: can't find referenced class com.flurry.sdk.gz
[2015-10-09 13:05:56 - MyApp] Warning: com.flurry.sdk.lw: can't find referenced class com.flurry.sdk.i
[2015-10-09 13:05:56 - MyApp] You should check if you need to specify additional program jars.
[2015-10-09 13:05:56 - MyApp] Warning: there were 35 unresolved references to classes or interfaces.
[2015-10-09 13:05:56 - MyApp] You may need to specify additional library jars (using '-libraryjars').
[2015-10-09 13:05:56 - MyApp] java.io.IOException: Please correct the above warnings first.
[2015-10-09 13:05:56 - MyApp] at proguard.Initializer.execute(Initializer.java:321)
[2015-10-09 13:05:56 - MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-10-09 13:05:56 - MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-10-09 13:05:56 - MyApp] at proguard.ProGuard.main(ProGuard.java:492)
It is very annoying that a new version of library breaks the application. At least, they should give some warning about that.
What are this errors? Why do they appear and most important, how to get rid of them?
"com.flurry.sdk.dz" belongs to FlurryAds-X.X.X.jar lib.
if you not use ad, try below, it work:
-dontwarn com.flurry.**
I watched this link and My application use google play services. I added this lines
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames #com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
#com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
but when i export my application gives this error:
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Proguard returned with error code 1. See console
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.internal.af: can't find referenced method 'boolean isAttachedToWindow()' in class android.view.View
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.internal.an$2: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.internal.gu: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] You should check if you need to specify additional program jars.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: there were 11 unresolved references to classes or interfaces.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] You may need to specify additional library jars (using '-libraryjars').
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: there were 3 unresolved references to program class members.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Your input classes appear to be inconsistent.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] You may need to recompile them and try again.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Alternatively, you may have to specify the option
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] '-dontskipnonpubliclibraryclassmembers'.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] java.io.IOException: Please correct the above warnings first.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.Initializer.execute(Initializer.java:321)
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.ProGuard.main(ProGuard.java:492)
I'm new on using proguard. I will publish my first android application. I dont understand these errors so any help?
Might it be that you are using 3rd party libraries in your project that you forgot to include in the proguard.config using the '-libraryjars' tag...?
I have parse 1.5.1 in my app and everything works fine, but when I go to export to APK I get:
[2014-09-05 19:53:08 - myapp] Proguard returned with error code 1. See console
[2014-09-05 19:53:08 - myapp] Note: there were 662 duplicate class definitions.
[2014-09-05 19:53:08 - myapp] Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
[2014-09-05 19:53:08 - myapp] Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
[2014-09-05 19:53:08 - myapp] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
[2014-09-05 19:53:08 - myapp] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
......
[2014-09-05 19:53:08 - myapp] at proguard.Initializer.execute(Initializer.java:321)
[2014-09-05 19:53:08 - myapp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-09-05 19:53:08 - myapp] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-09-05 19:53:08 - myapp] at proguard.ProGuard.main(ProGuard.java:492)
In my proguard.cfg I have the following:
-keepattributes *Annotation*
-keep class com.parse.* { *; }
-libraryjars libs/Parse-1.5.1.jar
This is driving me crazy!!!
You should try also keeping the subpackages of com.parse:
-keepattributes *Annotation*
-keep class com.parse.** { *; }
You should not add -libraryjars options, since the Android build process already automatically specifies all necessary -injars, -outjars, and -libraryjars for you. It only causes warnings about duplicate classes.
Mine was fixed by adding this:
-keep class com.parse.* { *; }
-dontwarn com.parse.**
Reference: this post.
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
I try to build Google Drive SDK examples in Eclipse v22.01:
(The example website is as follows:)
https://developers.google.com/drive/quickstart-android
When I used debug build,it builded fine and executed fine on my table device.
However, when I tried to build it on release mode, I failed.
My process is as follows:
1. Go to "File"->"Export"
2. Create private keystore (This step succeeded.)
3. Build apk
I've checked the post Update your Proguard and downloaded and replaced jars in Proguard
I also checked the postCheck the '"Android Private Libraries' and checked items on "Order and Export" tab. But Still failed.
[Edit 1] I found the solution.
Just Uncheck the 'Drive API' (See the picture for reference)
(I am not sure if 'Android Dependencies' is needed or not. Maybe this could also be unchecked.)
I also add '-dontwarn com.google.**' to 'proguard-android.txt'
And then it worked.
Here are the errors messages I got:
[2013-07-24 12:03:43 - MainActivity] Proguard returned with error code 1. See console
[2013-07-24 12:03:43 - MainActivity] Note: there were 1081 duplicate class definitions.
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$color
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$color
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$color
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.util.concurrent.ServiceManager: can't find referenced class javax.inject.Inject
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.util.concurrent.ServiceManager: can't find referenced class javax.inject.Singleton
[2013-07-24 12:03:43 - MainActivity] Warning: there were 67 unresolved references to classes or interfaces.
[2013-07-24 12:03:43 - MainActivity] You may need to add missing library jars or update their versions.
[2013-07-24 12:03:43 - MainActivity] If your code works fine without the missing classes, you can suppress
[2013-07-24 12:03:43 - MainActivity] the warnings with '-dontwarn' options.
[2013-07-24 12:03:43 - MainActivity] java.io.IOException: Please correct the above warnings first.
[2013-07-24 12:03:43 - MainActivity] at proguard.Initializer.execute(Initializer.java:330)
[2013-07-24 12:03:43 - MainActivity] at proguard.ProGuard.initialize(ProGuard.java:212)
[2013-07-24 12:03:43 - MainActivity] at proguard.ProGuard.execute(ProGuard.java:87)
[2013-07-24 12:03:43 - MainActivity] at proguard.ProGuard.main(ProGuard.java:484)
I found the answer, Please refer the "Edit 1" part.
Hope this would help anyone who got the same problem.
From your screenshot (you have the google-play-services.jar), it looks like project isn't being built correct and this will only lead to more issues in the future.
Based on the link you provided, https://developers.google.com/drive/quickstart-android that documentation Does tell you to just use the jar.
However, there are more complete instructions at https://developer.android.com/google/play-services/setup.html
Here it instructs to
use the library project at /extras/google/google_play_services/libproject/google-play-services_lib/
make proguard entries
modify your AndroidManifest.xml