2017-04-12 235 views
0

我在創建已簽名的apk應用程序時收到此異常。Proguard返回錯誤代碼1,錯誤找不到引用類android.support.v4.app

[2017-04-13 02:47:21 - MyApp] Proguard returned with error code 1. See console 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find superclass or interface android.support.v4.app.DialogFragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find superclass or interface android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find superclass or interface android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find superclass or interface android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find superclass or interface android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced class android.support.v4.app.DialogFragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced class android.support.v4.app.DialogFragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced class android.support.v4.app.DialogFragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced method 'void setShowsDialog(boolean)' in class com.google.android.gms.common.SupportErrorDialogFragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.GoogleApiClient$Builder: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.google.android.gms.common.api.d 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.dynamic.h: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.internal.gz: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.internal.gz: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.internal.gz: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.internal.gz: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.internal.he: can't find referenced class android.support.v4.app.ShareCompat 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.internal.he: can't find referenced class android.support.v4.app.ShareCompat$IntentBuilder 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment$b: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportMapFragment$b: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment$a: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment$b: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.maps.SupportStreetViewPanoramaFragment$b: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentActivity 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentManager 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.FragmentTransaction 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment$c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment$c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.wallet.fragment.SupportWalletFragment$c: can't find referenced class android.support.v4.app.Fragment 
 
[2017-04-13 02:47:21 - MyApp]  You should check if you need to specify additional program jars. 
 
[2017-04-13 02:47:21 - MyApp] Warning: there were 150 unresolved references to classes or interfaces. 
 
[2017-04-13 02:47:21 - MyApp]   You may need to specify additional library jars (using '-libraryjars'). 
 
[2017-04-13 02:47:21 - MyApp] Warning: there were 2 unresolved references to program class members. 
 
[2017-04-13 02:47:21 - MyApp]   Your input classes appear to be inconsistent. 
 
[2017-04-13 02:47:21 - MyApp]   You may need to recompile them and try again. 
 
[2017-04-13 02:47:21 - MyApp]   Alternatively, you may have to specify the option 
 
[2017-04-13 02:47:21 - MyApp]   '-dontskipnonpubliclibraryclassmembers'. 
 
[2017-04-13 02:47:21 - MyApp] java.io.IOException: Please correct the above warnings first. 
 
[2017-04-13 02:47:21 - MyApp] \t at proguard.Initializer.execute(Initializer.java:321) 
 
[2017-04-13 02:47:21 - MyApp] \t at proguard.ProGuard.initialize(ProGuard.java:211) 
 
[2017-04-13 02:47:21 - MyApp] \t at proguard.ProGuard.execute(ProGuard.java:86) 
 
[2017-04-13 02:47:21 - MyApp] \t at proguard.ProGuard.main(ProGuard.java:492)

警告說,如果另外,您可能需要指定的選項-dontskipnonpubliclibraryclassmembers

,這裏是我的proguard.cfg

-optimizationpasses 5 
 
-dontusemixedcaseclassnames 
 
-dontskipnonpubliclibraryclasses 
 
-dontskipnonpubliclibraryclassmembers 
 
-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 *; 
 
}

+0

決心通過附加-dontwarn android.support.v4 ** -dontwarn com.google.android.gms ** 上proguard.cfg –

回答

0

試試這個行添加到您的ProGuard文件:

-dontwarn android.support.v4.**

+0

仍然得到錯誤 –

+0

你確定你有同樣的錯誤? @SiriusKuddo – shmakova

+0

是的,但是我之後添加-dontwarn com.google.android.gms。** 警告錯誤不見了 –

0

這是我在我的ProGuard支持Android

#########--------Android Support--------######### 
-keep class android.support.v4.app.** { *; } 
-keep interface android.support.v4.app.** { *; } 
-dontwarn android.support.** 

做正如控制檯中的鏈接ProGuard Troubleshooting page指示日誌,您應該將project.properties中的目標更改爲包含缺少的類的目標。在這種情況下:「android-18」或者「Google Inc.:Google APIs:18」。

您仍然可以指定在AndroidManifest.xml不同的minSdkVersion。

你不應該指定任何-libraryjars選項,因爲Android編譯過程中就已經規定了你的選擇 - 你只看到重複類的警告了。實際上,Android構建過程也爲您指定了大多數其他選項。

來源:here

+0

仍然得到錯誤 –

+0

如果它不工作與你的gradle這個,也可能是問題。如果設置正確,請檢查您的Android版本,的minSdkVersion,Android的依賴 – ZeroOne

相關問題