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:
Related
This is my proguard rules :
-keepattributes SourceFile,LineNumberTable
-keep class com.parse.*{ *; }
-keepclasseswithmembernames class * {
native <methods>;
}
i've searched and used lots of codes but none of them worked . these are the errors I got :
Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionDefaultAudience
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
You should check if you need to specify additional program jars.
please do not tell me to use dontwarn ,yes it manage to build the app but the app will not be run
How can I solve this problem ?
You have to use this
-keep class com.parse.** { *; }
i.e. ** instead of *
and maybe this too
-keepattributes *Annotation*
Please try to use below in your progaurd file :
#Parse
-keep class com.parse.** { *; }
-keepattributes Signature
Hope It will help.!!
[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.
I have seen a bunch of other similar post but still dont understand what is wrong with my code. I am trying to export a signed APK in android and get these errors:
[2014-02-18 21:20:35 - Bounce-android] Proguard returned with error code 1. See console
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeProviderCompatJellyBean$1: can't find superclass or interface android.view.accessibility.AccessibilityNodeProvider
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find superclass or interface android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'android.content.Intent getParentActivityIntent()' in class android.app.Activity
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'boolean shouldUpRecreateTask(android.content.Intent)' in class android.app.Activity
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'boolean navigateUpTo(android.content.Intent)' in class android.app.Activity
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NavUtilsJB: can't find referenced field 'java.lang.String parentActivityName' in class android.content.pm.ActivityInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setSubText(java.lang.CharSequence)' in class android.app.Notification$Builder
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setUsesChronometer(boolean)' in class android.app.Notification$Builder
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setPriority(int)' in class android.app.Notification$Builder
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder addAction(int,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification$Builder
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification build()' in class android.app.Notification$Builder
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.ShareCompatJB: can't find referenced method 'java.lang.String escapeHtml(java.lang.CharSequence)' in class android.text.Html
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.app.TaskStackBuilderJellybean: can't find referenced method 'android.app.PendingIntent getActivities(android.content.Context,int,android.content.Intent[],int,android.os.Bundle)' in class android.app.PendingIntent
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.content.ContextCompatJellybean: can't find referenced method 'void startActivities(android.content.Intent[],android.os.Bundle)' in class android.content.Context
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.net.ConnectivityManagerCompatJellyBean: can't find referenced method 'boolean isActiveNetworkMetered()' in class android.net.ConnectivityManager
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider(android.view.View)' in class android.view.View$AccessibilityDelegate
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean: can't find referenced method 'boolean performAccessibilityAction(android.view.View,int,android.os.Bundle)' in class android.view.View$AccessibilityDelegate
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean$1: can't find referenced class android.view.accessibility.AccessibilityNodeProvider
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean$1: can't find referenced class android.view.accessibility.AccessibilityNodeProvider
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'boolean hasTransientState()' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void setHasTransientState(boolean)' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void postInvalidateOnAnimation()' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void postOnAnimation(java.lang.Runnable)' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void postOnAnimationDelayed(java.lang.Runnable,long)' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'int getImportantForAccessibility()' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void setImportantForAccessibility(int)' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'boolean performAccessibilityAction(int,android.os.Bundle)' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider()' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'int getLabelFor()' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'void setLabelFor(int)' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void addChild(android.view.View,int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setSource(android.view.View,int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'boolean isVisibleToUser()' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setVisibleToUser(boolean)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'boolean performAction(int,android.os.Bundle)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setMovementGranularities(int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'int getMovementGranularities()' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeInfo obtain(android.view.View,int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeInfo findFocus(int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeInfo focusSearch(int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setParent(android.view.View,int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'boolean isAccessibilityFocused()' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setAccessibilityFocused(boolean)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeProviderCompatJellyBean$1: can't find referenced class android.view.accessibility.AccessibilityNodeProvider
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityNodeProviderCompatJellyBean$1: can't find referenced class android.view.accessibility.AccessibilityNodeProvider
[2014-02-18 21:20:35 - Bounce-android] Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatJellyBean: can't find referenced method 'void setSource(android.view.View,int)' in class android.view.accessibility.AccessibilityRecord
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'android.content.res.AssetManager getAssets()' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'java.io.File getFilesDir()' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'void setFullscreen(boolean)' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'void setContentView(android.view.View,android.view.ViewGroup$LayoutParams)' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'java.lang.Object getSystemService(java.lang.String)' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'android.view.Window getWindow()' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced method 'android.content.SharedPreferences getSharedPreferences(java.lang.String,int)' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidDaydream$1: can't find referenced method 'void finish()' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidGraphicsDaydream: can't find referenced method 'android.view.WindowManager getWindowManager()' in class com.badlogic.gdx.backends.android.AndroidDaydream
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidGraphicsDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.backends.android.AndroidGraphicsDaydream: can't find referenced class android.service.dreams.DreamService
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.NativeCodeGenerator
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.NativeCodeGenerator
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.NativeCodeGenerator
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget$TargetOs
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget$TargetOs
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget$TargetOs
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget$TargetOs
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget$TargetOs
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.AntScriptGenerator
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.AntScriptGenerator
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildConfig
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildConfig
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.AntScriptGenerator
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget$TargetOs
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.badlogic.gdx.utils.GdxBuild: can't find referenced class com.badlogic.gdx.jnigen.BuildTarget
[2014-02-18 21:20:35 - Bounce-android] Warning: com.google.android.gms.common.images.a: can't find referenced method 'android.graphics.drawable.Drawable[] getCompoundDrawablesRelative()' in class android.widget.TextView
[2014-02-18 21:20:35 - Bounce-android] Warning: com.google.android.gms.common.images.a: can't find referenced method 'void setCompoundDrawablesRelativeWithIntrinsicBounds(android.graphics.drawable.Drawable,android.graphics.drawable.Drawable,android.graphics.drawable.Drawable,android.graphics.drawable.Drawable)' in class android.widget.TextView
[2014-02-18 21:20:35 - Bounce-android] Warning: com.google.android.gms.internal.ck: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings
[2014-02-18 21:20:35 - Bounce-android] Warning: com.google.android.gms.internal.ck: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings
[2014-02-18 21:20:35 - Bounce-android] Warning: com.google.android.gms.internal.es$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2014-02-18 21:20:35 - Bounce-android] Warning: com.google.android.gms.internal.es$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2014-02-18 21:20:35 - Bounce-android] You should check if you need to specify additional program jars.
[2014-02-18 21:20:35 - Bounce-android] Warning: there were 59 unresolved references to classes or interfaces.
[2014-02-18 21:20:35 - Bounce-android] You may need to specify additional library jars (using '-libraryjars').
[2014-02-18 21:20:35 - Bounce-android] Warning: there were 55 unresolved references to program class members.
[2014-02-18 21:20:35 - Bounce-android] Your input classes appear to be inconsistent.
[2014-02-18 21:20:35 - Bounce-android] You may need to recompile them and try again.
[2014-02-18 21:20:35 - Bounce-android] Alternatively, you may have to specify the option
[2014-02-18 21:20:35 - Bounce-android] '-dontskipnonpubliclibraryclassmembers'.
[2014-02-18 21:20:35 - Bounce-android] java.io.IOException: Please correct the above warnings first.
[2014-02-18 21:20:35 - Bounce-android] at proguard.Initializer.execute(Initializer.java:321)
[2014-02-18 21:20:35 - Bounce-android] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-02-18 21:20:35 - Bounce-android] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-02-18 21:20:35 - Bounce-android] at proguard.ProGuard.main(ProGuard.java:492)
I am using LibGDX, google game service, in app billing and admob.
This is my progaurd:
-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 * 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;
}
Anyone who can help me?
Getting the proguard config right quite often wheels like a game of whack-a-mole. The first challenge is to get something working, then to polish the config so you force proguard to pull in as little as needed. Some things to try to get rid of warnings etc from your output, and possibly force proguard to keep more of the needed stuff:
# Libgdx stuff
-dontwarn com.badlogic.gdx.jnigen.*
-keep class com.badlogic.**
-keep public class android.content.Context
-keep public interface com.badlogic.gdx.Application
-keep public class com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
-dontwarn android.support.v4.**
-keep class java.lang.reflect.**
You get the idea..
I am trying to protect my apk file with ProGuard but I got errors.
[2013-08-14 12:21:41 - LookAround] Proguard returned with error code 1. See console
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find superclass or interface android.media.RemoteControlClient$OnGetPlaybackPositionListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find superclass or interface android.media.RemoteControlClient$OnPlaybackPositionUpdateListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2$1: can't find superclass or interface android.view.ViewTreeObserver$OnWindowAttachListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2$2: can't find superclass or interface android.view.ViewTreeObserver$OnWindowFocusChangeListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeProviderCompatJellyBean$1: can't find superclass or interface android.view.accessibility.AccessibilityNodeProvider
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatJellyBeanMr2: can't find referenced method 'int getCapabilities()' in library class android.accessibilityservice.AccessibilityServiceInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityCompatJB: can't find referenced method 'void startActivity(android.content.Intent,android.os.Bundle)' in library class android.content.Context
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityCompatJB: can't find referenced method 'void startActivityForResult(android.content.Intent,int,android.os.Bundle)' in library class android.app.Activity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityCompatJB: can't find referenced method 'void finishAffinity()' in library class android.app.Activity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityOptionsCompatJB: can't find referenced class android.app.ActivityOptions
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityOptionsCompatJB: can't find referenced class android.app.ActivityOptions
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityOptionsCompatJB: can't find referenced class android.app.ActivityOptions
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityOptionsCompatJB: can't find referenced class android.app.ActivityOptions
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ActivityOptionsCompatJB: can't find referenced class android.app.ActivityOptions
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'android.content.Intent getParentActivityIntent()' in library class android.app.Activity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'boolean shouldUpRecreateTask(android.content.Intent)' in library class android.app.Activity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'boolean navigateUpTo(android.content.Intent)' in library class android.app.Activity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NavUtilsJB: can't find referenced field 'java.lang.String parentActivityName' in library class android.content.pm.ActivityInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setSubText(java.lang.CharSequence)' in library class android.app.Notification$Builder
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setUsesChronometer(boolean)' in library class android.app.Notification$Builder
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setPriority(int)' in library class android.app.Notification$Builder
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder addAction(int,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification$Builder
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification build()' in library class android.app.Notification$Builder
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigTextStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$BigPictureStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced class android.app.Notification$InboxStyle
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.ShareCompatJB: can't find referenced method 'java.lang.String escapeHtml(java.lang.CharSequence)' in library class android.text.Html
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.app.TaskStackBuilderJellybean: can't find referenced method 'android.app.PendingIntent getActivities(android.content.Context,int,android.content.Intent[],int,android.os.Bundle)' in library class android.app.PendingIntent
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.content.ContextCompatJellybean: can't find referenced method 'void startActivities(android.content.Intent[],android.os.Bundle)' in library class android.content.Context
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.content.IntentCompatIcsMr1: can't find referenced method 'android.content.Intent makeMainSelectorActivity(java.lang.String,java.lang.String)' in library class android.content.Intent
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.hardware.display.DisplayManagerJellybeanMr1: can't find referenced class android.hardware.display.DisplayManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.hardware.display.DisplayManagerJellybeanMr1: can't find referenced class android.hardware.display.DisplayManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.hardware.display.DisplayManagerJellybeanMr1: can't find referenced class android.hardware.display.DisplayManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.hardware.display.DisplayManagerJellybeanMr1: can't find referenced class android.hardware.display.DisplayManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void addOnWindowAttachListener(android.view.ViewTreeObserver$OnWindowAttachListener)' in library class android.view.ViewTreeObserver
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void addOnWindowFocusChangeListener(android.view.ViewTreeObserver$OnWindowFocusChangeListener)' in library class android.view.ViewTreeObserver
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void removeOnWindowAttachListener(android.view.ViewTreeObserver$OnWindowAttachListener)' in library class android.view.ViewTreeObserver
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void removeOnWindowFocusChangeListener(android.view.ViewTreeObserver$OnWindowFocusChangeListener)' in library class android.view.ViewTreeObserver
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void setOnGetPlaybackPositionListener(android.media.RemoteControlClient$OnGetPlaybackPositionListener)' in library class android.media.RemoteControlClient
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void setPlaybackPositionUpdateListener(android.media.RemoteControlClient$OnPlaybackPositionUpdateListener)' in library class android.media.RemoteControlClient
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void registerMediaButtonEventReceiver(android.app.PendingIntent)' in library class android.media.AudioManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void setPlaybackState(int,long,float)' in library class android.media.RemoteControlClient
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void unregisterMediaButtonEventReceiver(android.app.PendingIntent)' in library class android.media.AudioManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.media.RemoteControlClient$OnGetPlaybackPositionListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.media.RemoteControlClient$OnPlaybackPositionUpdateListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowAttachListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowFocusChangeListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowAttachListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowFocusChangeListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2$1: can't find referenced class android.view.ViewTreeObserver$OnWindowAttachListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.media.TransportMediatorJellybeanMR2$2: can't find referenced class android.view.ViewTreeObserver$OnWindowFocusChangeListener
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.net.ConnectivityManagerCompatJellyBean: can't find referenced method 'boolean isActiveNetworkMetered()' in library class android.net.ConnectivityManager
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider(android.view.View)' in library class android.view.View$AccessibilityDelegate
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean: can't find referenced method 'boolean performAccessibilityAction(android.view.View,int,android.os.Bundle)' in library class android.view.View$AccessibilityDelegate
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean$1: can't find referenced class android.view.accessibility.AccessibilityNodeProvider
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.AccessibilityDelegateCompatJellyBean$1: can't find referenced class android.view.accessibility.AccessibilityNodeProvider
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.GravityCompatJellybeanMr1: can't find referenced method 'void apply(int,int,int,android.graphics.Rect,android.graphics.Rect,int)' in library class android.view.Gravity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.GravityCompatJellybeanMr1: can't find referenced method 'void apply(int,int,int,android.graphics.Rect,int,int,android.graphics.Rect,int)' in library class android.view.Gravity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.GravityCompatJellybeanMr1: can't find referenced method 'void applyDisplay(int,android.graphics.Rect,android.graphics.Rect,int)' in library class android.view.Gravity
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'int getMarginStart()' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'int getMarginEnd()' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'void setMarginStart(int)' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'void setMarginEnd(int)' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'boolean isMarginRelative()' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'int getLayoutDirection()' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'void setLayoutDirection(int)' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.MarginLayoutParamsCompatJellybeanMr1: can't find referenced method 'void resolveLayoutDirection(int)' in library class android.view.ViewGroup$MarginLayoutParams
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'boolean hasTransientState()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void setHasTransientState(boolean)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void postInvalidateOnAnimation()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void postOnAnimation(java.lang.Runnable)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void postOnAnimationDelayed(java.lang.Runnable,long)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'int getImportantForAccessibility()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'void setImportantForAccessibility(int)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'boolean performAccessibilityAction(int,android.os.Bundle)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJB: can't find referenced method 'android.view.ViewParent getParentForAccessibility()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'int getLabelFor()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'void setLabelFor(int)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'void setLayerPaint(android.graphics.Paint)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'int getLayoutDirection()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'void setLayoutDirection(int)' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void addChild(android.view.View,int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setSource(android.view.View,int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'boolean isVisibleToUser()' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setVisibleToUser(boolean)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'boolean performAction(int,android.os.Bundle)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setMovementGranularities(int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'int getMovementGranularities()' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeInfo obtain(android.view.View,int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeInfo findFocus(int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'android.view.accessibility.AccessibilityNodeInfo focusSearch(int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setParent(android.view.View,int)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'boolean isAccessibilityFocused()' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellyBean: can't find referenced method 'void setAccessibilityFocused(boolean)' in library class android.view.accessibility.AccessibilityNodeInfo
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatIcsMr1: can't find referenced method 'int getMaxScrollX()' in library class android.view.accessibility.AccessibilityRecord
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatIcsMr1: can't find referenced method 'int getMaxScrollY()' in library class android.view.accessibility.AccessibilityRecord
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatIcsMr1: can't find referenced method 'void setMaxScrollX(int)' in library class android.view.accessibility.AccessibilityRecord
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatIcsMr1: can't find referenced method 'void setMaxScrollY(int)' in library class android.view.accessibility.AccessibilityRecord
[2013-08-14 12:21:41 - LookAround] Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatJellyBean: can't find referenced method 'void setSource(android.view.View,int)' in library class android.view.accessibility.AccessibilityRecord
[2013-08-14 12:21:41 - LookAround] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'android.view.Display getDisplay()' in library class android.view.View
[2013-08-14 12:21:41 - LookAround] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in library class android.view.ViewTreeObserver
[2013-08-14 12:21:41 - LookAround] Warning: there were 49 unresolved references to classes or interfaces.
[2013-08-14 12:21:41 - LookAround] You may need to add missing library jars or update their versions.
[2013-08-14 12:21:41 - LookAround] If your code works fine without the missing classes, you can suppress
[2013-08-14 12:21:41 - LookAround] the warnings with '-dontwarn' options.
[2013-08-14 12:21:41 - LookAround] (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
[2013-08-14 12:21:41 - LookAround] Warning: there were 77 unresolved references to library class members.
[2013-08-14 12:21:41 - LookAround] You probably need to update the library versions.
[2013-08-14 12:21:41 - LookAround] (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
[2013-08-14 12:21:41 - LookAround] Error: Please correct the above warnings first.
and my proguard-project.txt
-libraryjars /libs/android-support-v4.jar
-libraryjars C:/Users/User/workspace/google-play-services_lib/libs/google-play-services.jar
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontoptimize
-dontpreverify
-dontwarn android.support.**
-verbose
-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 * extends android.support.v4.app.FragmentActivity
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Fragment
-keep class android.support.v4.media.** { *; }
-keep interface android.support.v4.media.** { *; }
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
public static *** w(...);
}
-keepclasseswithmembernames class * {
native <methods>;
}
-keep public class * extends android.view.View {
public <init>(android.content.Context);
}
-keep public class * extends android.view.View {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keep public class * extends android.view.View {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
#Maintain enums
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
#To keep parcelable classes (to serialize - deserialize objects to sent through Intents)
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
#Keep the R
-keepclassmembers class **.R$* {
public static <fields>;
}
Also I am using GoogleMap V2 in my application
As indicated by the link to the ProGuard Troubleshooting page in your console log, you should change the target in project.properties to a target that contains the missing classes. In this case: "android-18" or maybe "Google Inc.:Google APIs:18".
You can still specify a different minSdkVersion in AndroidManifest.xml.
You should not specify any -libraryjars options, since the Android build process already specifies those options for you -- you'll just see warnings about duplicate classes now. In fact, the Android build process specifies most other options for you as well.
I got this after update of Android Support Library to rev.18. Fixed it by adding:
-dontwarn android.support.v4.**
to ProGuard configuration file.
(I use MOTODEV Studio 4.1 and first enable proguard in menu "MOTODEV")
Method one: Add the first line to your proguard.cfg file directly, maybe the second line is needed.
-dontwarn android.support.v4.**
-dontskipnonpubliclibraryclassmembers
Another way: according the proguard-project.txt instruction to remove "#" before ${sdk.dir} in project.properties, then add the above two lines in proguard-project.txt
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.