在发布模式下,当我只启用multi-dex时,我的应用程序大小为33.30MB,这相当大。经过一系列的研究,我意识到PROGUARD缩小了apk的大小。在我的解决方案中启用proguard,会出现此错误。PROGUARD的解决方案中可能缺少什么(缩小我的应用程序大小)?
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find superclass or interface com.flurry.android.ads.FlurryAdNativeListener
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find superclass or interface com.inmobi.ads.InMobiNative$NativeAdListener
PROGUARD : warning : com.google.android.gms.internal.zzx$zza: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.FlurryAgent
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.FlurryAgent
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.FlurryAgent
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdErrorType
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNativeAsset
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNativeListener
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdErrorType
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNativeAsset
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdNative
PROGUARD : warning : com.facebook.ads.internal.adapters.n$1: can't find referenced class com.flurry.android.ads.FlurryAdErrorType
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative$NativeAdListener
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.sdk.InMobiSdk
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.sdk.InMobiSdk
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiAdRequestStatus
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative$NativeAdListener
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiAdRequestStatus
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiAdRequestStatus
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.adapters.q$1: can't find referenced class com.inmobi.ads.InMobiNative
PROGUARD : warning : com.facebook.ads.internal.view.d.c.a: can't find referenced method 'DefaultTrackSelector(android.os.Handler,com.google.android.exoplayer2.trackselection.TrackSelection$Factory)' in program class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.ProtocolVersion
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.StatusLine
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.entity.BasicHttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicHeader
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicHttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicStatusLine
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.ProtocolVersion
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.entity.BasicHttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.entity.BasicHttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.entity.BasicHttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.entity.BasicHttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.entity.BasicHttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicHeader
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicHttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicHttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicHttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.message.BasicStatusLine
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.StatusLine
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzaa: can't find referenced class org.apache.http.HttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class android.net.http.AndroidHttpClient
PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class android.net.http.AndroidHttpClient
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.Header
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.Header
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.StatusLine
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.impl.cookie.DateUtils
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.impl.cookie.DateUtils
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.Header
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.Header
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.StatusLine
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.StatusLine
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.StatusLine
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.HttpEntity
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.Header
PROGUARD : warning : com.google.android.gms.internal.zzu: can't find referenced class org.apache.http.Header
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.HttpClient
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpDelete
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpGet
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpHead
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpOptions
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPost
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPut
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpTrace
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.entity.ByteArrayEntity
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced method 'void addHeader(java.lang.String,java.lang.String)' in program class com.google.android.gms.internal.zzx$zza
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpDelete
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpGet
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpHead
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpOptions
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPost
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPost
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPost
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPut
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpPut
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpTrace
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.entity.ByteArrayEntity
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.HttpClient
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.HttpClient
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.HttpClient
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpUriRequest
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.google.android.gms.internal.zzx$zza: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.google.android.gms.internal.zzx$zza: can't find referenced method 'void setURI(java.net.URI)' in program class com.google.android.gms.internal.zzx$zza
PROGUARD : warning : com.google.android.gms.internal.zzx$zza: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
PROGUARD : warning : com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.impl.cookie.DateParseException
PROGUARD : warning : com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.impl.cookie.DateUtils
PROGUARD : warning : com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.impl.cookie.DateUtils
PROGUARD : warning : com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpResponse
PROGUARD : warning : gr.net.maroulis.library.EasySplashScreen: can't find referenced field 'int splash_wrapper_rl' in program class gr.net.maroulis.library.R$id
PROGUARD : warning : gr.net.maroulis.library.EasySplashScreen: can't find referenced field 'int logo' in program class gr.net.maroulis.library.R$id
PROGUARD : warning : gr.net.maroulis.library.EasySplashScreen: can't find referenced field 'int header_tv' in program class gr.net.maroulis.library.R$id
PROGUARD : warning : gr.net.maroulis.library.EasySplashScreen: can't find referenced field 'int footer_tv' in program class gr.net.maroulis.library.R$id
PROGUARD : warning : gr.net.maroulis.library.EasySplashScreen: can't find referenced field 'int before_logo_tv' in program class gr.net.maroulis.library.R$id
PROGUARD : warning : gr.net.maroulis.library.EasySplashScreen: can't find referenced field 'int after_logo_tv' in program class gr.net.maroulis.library.R$id
PROGUARD : warning : okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Files
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Files
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Files
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
PROGUARD : warning : okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
PROGUARD : warning : okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
PROGUARD : warning : there were 156 unresolved references to classes or interfaces.
proguard.cfg
Environment Variables passed to tool:
PROGUARD_HOME=/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/proguard
/usr/bin/java -jar /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/proguard/lib/proguard.jar -include /Users/emmnock/AndroidStudioProjects/android-sdk-macosx//tools/proguard/proguard-android.txt -include obj/Release/proguard/proguard_xamarin.cfg -include obj/Release/proguard/proguard_project_references.cfg -include obj/Release/proguard/proguard_project_primary.cfg -include proguard.cfg -include obj/Release/XbdMerge/proguard/00d975c90.txt -include obj/Release/XbdMerge/proguard/0757626b0.txt -include obj/Release/XbdMerge/proguard/1db418320.txt -include obj/Release/XbdMerge/proguard/1f4fd9cc0.txt -include obj/Release/XbdMerge/proguard/211c61910.txt -include obj/Release/XbdMerge/proguard/2f4d086a0.txt -include obj/Release/XbdMerge/proguard/581878c90.txt -include obj/Release/XbdMerge/proguard/67b1d0a90.txt -include obj/Release/XbdMerge/proguard/8f1de9cb0.txt -include obj/Release/XbdMerge/proguard/a35ed7280.txt -include obj/Release/XbdMerge/proguard/acdd43380.txt -include obj/Release/XbdMerge/proguard/b76e0d310.txt -include obj/Release/XbdMerge/proguard/c756521f0.txt -include obj/Release/XbdMerge/proguard/d87effcf0.txt -include obj/Release/XbdMerge/proguard/d99a9fda0.txt -include obj/Release/XbdMerge/proguard/d9f2c52f0.txt -include obj/Release/XbdMerge/proguard/dc663e480.txt -include obj/Release/XbdMerge/proguard/e5bf18810.txt -include obj/Release/XbdMerge/proguard/e843ef2a0.txt -include obj/Release/XbdMerge/proguard/fb4df8d50.txt "-injars 'obj/Release/proguard/__proguard_input__.jar':'/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v7.1/mono.android.jar':'obj/Release/__library_projects__/Bolts.AppLinks/library_project_imports/bin/classes.jar':'obj/Release/__library_projects__/Bolts.Tasks/library_project_imports/bolts-tasks.jar':'obj/Release/__library_projects__/EasySplashScreen/library_project_imports/bin/classes.jar':'obj/Release/__library_projects__/ExoPlayer/library_project_imports/bin/classes.jar':'obj/Release/__library_projects__/FormsViewGroup/library_project_imports/formsviewgroup.jar':'obj/Release/__library_projects__/Glide/library_project_imports/glide-3.8.0.jar':'obj/Release/__library_projects__/Refractored.Controls.CircleImageView/library_project_imports/bin/classes.jar':'obj/Release/__library_projects__/Square.OkHttp/library_project_imports/okhttp.jar':'obj/Release/__library_projects__/Square.OkIO/library_project_imports/okio.jar':'obj/Release/__library_projects__/Square.Picasso/library_project_imports/picasso-2.5.2.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Animated.Vector.Drawable/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Compat/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Core.UI/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Core.Utils/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Design/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Fragment/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Media.Compat/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Transition/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.Vector.Drawable/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.v4/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.v7.AppCompat/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.v7.CardView/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.v7.Palette/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Android.Support.v7.RecyclerView/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Facebook/library_project_imports/bin/classes.jar':'obj/Release/__library_projects__/Xamarin.Facebook.AudienceNetwork/library_project_imports/bin/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Analytics/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Analytics.Impl/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Auth/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Common/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Database/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Database.Connection/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Iid/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Storage/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.Firebase.Storage.Common/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Ads/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Ads.Lite/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Base/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Basement/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Clearcut/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Gass/library_project_imports/classes.jar':'obj/Release/__library_projects__/Xamarin.GooglePlayServices.Tasks/library_project_imports/classes.jar'" "-libraryjars '/Users/emmnock/AndroidStudioProjects/android-sdk-macosx/platforms/android-25/android.jar'" -outjars "obj/Release/proguard/__proguard_output__.jar" -optimizations !code/allocation/variable
proguard.ParseException: Unknown option '-dontwarn' in line 1 of file 'proguard.cfg',
included from argument number 10
at proguard.ConfigurationParser.parse(Unknown Source)
at proguard.ProGuard.main(Unknown Source)
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1922,3): error MSB6006: "java" exited with code 1.
Done executing task "Proguard" -- FAILED.
Proguard告诉您,在允许生成警告之前,您需要修复警告。
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Unknown Source)
at proguard.ProGuard.initialize(Unknown Source)
at proguard.ProGuard.execute(Unknown Source)
at proguard.ProGuard.main(Unknown Source)
您可以一个接一个地修复所有这些错误(通过使用-保留
),也可以忽略警告。有两种方法可以解决这个问题:
-ignorewarnings
指定打印有关未解决的引用和其他重要问题的任何警告,但在任何情况下都要继续处理。忽视警告可能是危险的。例如,如果处理确实需要未解析的类或类成员,则处理后的代码将无法正常工作。只有当你知道自己在做什么时才使用此选项!
https://www.guardsquare.com/en/proguard/manual/usage#ignorewarnings
指定根本不对未解决的引用和其他重要问题发出警告。可选的过滤器是正则表达式;ProGuard不会打印关于具有匹配名称的类的警告。忽视警告可能是危险的。例如,如果处理确实需要未解析的类或类成员,则处理后的代码将无法正常工作。只有当你知道自己在做什么时才使用此选项!
https://www.guardsquare.com/en/proguard/manual/usage#dontwarn
你可以通过我写的留档找到如何创建自定义proGuard配置:
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/proGuard/#Customizing_ProGuard
你为什么会收到你可能会问的警告?这很可能是因为链接器在运行Proguard之前剥离了这些项。请参见我在此处的注释:
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/proGuard/#Linker_Step
我正在工作xamarin应用程序。当我启用"ProGuard"在Android属性,而建立的应用程序,我得到以下错误: 开发环境: Visual Studio 2015 Xamarin 4.0。4.4
我最近打破了64K参考的Dalvik限制(https://developer.android.com/studio/build/multidex.html) /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/XamarinAndroid。Common.targets:错误:工具退出代码:2.输出:麻烦写入输出:字段
无论如何,由于multi-dex支持不起作用,我的下一个尝试就是让Proguard能够优化应用程序中绑定的类。我下载了最新的proguard文件(5.3.3),并将它们部署到/android/sdk/tools/proguard。我更新了proguard-android.txt文件,使其包含以下行: 然而,当应用程序启动并尝试使用google位置服务时,它会使应用程序崩溃: 导致Xamarin的原
我试图添加一个Custom.targets文件到我的Xamarin Android项目,它在每次构建之前将一些文件从一个文件夹复制到另一个文件夹。 这在调试版本中运行良好,但是在发布版本中,由于ProGuard不喜欢Custom.targets文件,这很不正常。 /库/框架/单声道。framework/External/xbuild/Xamarin/Android/Xamarin。Android常
问题内容: 我的应用程序在没有启用proguard的情况下可以完美运行,但是当我启用它时,该应用程序立即崩溃。我尝试了配置中的许多组合都无济于事。 有什么我应该保留的东西,我丢失了吗? proguard配置:https : //gist.github.com/hanleyhansen/99fc07807950bae8e4f5 完整的日志:https ://gist.github.com/hanle
我想减少大小的. apk文件,所以我检查启用ProGuard选项在Android项目的属性窗口,但得到编译时间错误 退出错误“java.exe”,代码为1。 我尝试了一些事情 头部尺寸已经是1克了 日志: 如何解决此问题?我想修复上面的而不仅仅是警告。