为了减小应用程序大小,我正在检查Android项目中的 Enable ProGuard 选项。但是出现编译错误
错误“ java.exe”以代码1退出。
我从各种线程尝试了一些类似的方法,但还是没有运气
下面是我的错误的屏幕截图
日志:
2>PROGUARD : warning : com.google.android.gms.internal.zzal: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.StatusLine
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.impl.cookie.DateUtils
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.impl.cookie.DateUtils
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.StatusLine
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2>PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpDelete
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpGet
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpHead
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpOptions
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPost
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPut
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpTrace
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.entity.ByteArrayEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced method 'void addHeader(java.lang.String,java.lang.String)' in program class com.google.android.gms.internal.zzal
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpDelete
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpGet
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpHead
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpOptions
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPost
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPost
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPut
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPut
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpTrace
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.entity.ByteArrayEntity
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzal: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzal: can't find referenced method 'void setURI(java.net.URI)' in program class com.google.android.gms.internal.zzal
2>PROGUARD : warning : com.google.android.gms.internal.zzal: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2>PROGUARD : warning : com.google.android.gms.internal.zzam: can't find referenced class org.apache.http.impl.cookie.DateParseException
2>PROGUARD : warning : com.google.android.gms.internal.zzam: can't find referenced class org.apache.http.impl.cookie.DateUtils
2>PROGUARD : warning : com.google.android.gms.internal.zzam: can't find referenced class org.apache.http.impl.cookie.DateUtils
2>PROGUARD : warning : com.google.android.gms.internal.zzan: can't find referenced class org.apache.http.HttpResponse
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement$Event
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement$Param
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement$UserProperty
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2>PROGUARD : warning : there were 100 unresolved references to classes or interfaces.
2> You may need to add missing library jars or update their versions.
2> If your code works fine without the missing classes, you can suppress
2> the warnings with '-dontwarn' options.
2> (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
2>PROGUARD : warning : there were 2 unresolved references to program class members.
2> Your input classes appear to be inconsistent.
2> You may need to recompile the code.
2> (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
2> java.io.IOException: Please correct the above warnings first.
2> at proguard.Initializer.execute(Unknown Source)
2> at proguard.ProGuard.initialize(Unknown Source)
2> at proguard.ProGuard.execute(Unknown Source)
2> at proguard.ProGuard.main(Unknown Source)
2> Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
2> Picked up _JAVA_OPTIONS: -Xmx512M
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2550,3): error MSB6006: "java.exe" exited with code 1.
2>
2>Build FAILED.
2>
2>"D:\Arvind.ch\SIS\SIS_Product\SIS-Global-QA-SY\edTheSIS\SISAPP\SISAPP.Droid.csproj" (Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
2>"D:\Arvind.ch\SIS\SIS_Product\SIS-Global-QA-SY\edTheSIS\SISAPP.PCL\SISAPP.PCL.csproj" (GetTargetPath target) (2:2) ->
2>(BclBuildValidateNugetPackageReferences target) ->
2> D:\Arvind.ch\SIS\SIS_Product\SIS-Global-QA-SY\edTheSIS\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets(243,5): warning : All projects referencing SISAPP.PCL.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569.
2>
2>
2>"D:\Arvind.ch\SIS\SIS_Product\SIS-Global-QA-SY\edTheSIS\SISAPP\SISAPP.Droid.csproj" (Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
2>(CoreCompile target) ->
2>"D:\Arvind.ch\SIS\SIS_Product\SIS-Global-QA-SY\edTheSIS\SISAPP\SISAPP.Droid.csproj" (Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
2>(_CompileToDalvikWithDx target) ->
2> PROGUARD : warning : com.google.android.gms.internal.zzal: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.StatusLine
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.impl.cookie.DateUtils
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.impl.cookie.DateUtils
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.StatusLine
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.HttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2> PROGUARD : warning : com.google.android.gms.internal.zzad: can't find referenced class org.apache.http.Header
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpDelete
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpGet
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpHead
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpOptions
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPost
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPut
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpTrace
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.entity.ByteArrayEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced method 'void addHeader(java.lang.String,java.lang.String)' in program class com.google.android.gms.internal.zzal
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpDelete
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpGet
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpHead
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpOptions
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPost
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPost
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPut
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpPut
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpTrace
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.entity.ByteArrayEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.HttpClient
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpUriRequest
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzak: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzal: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzal: can't find referenced method 'void setURI(java.net.URI)' in program class com.google.android.gms.internal.zzal
2> PROGUARD : warning : com.google.android.gms.internal.zzal: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
2> PROGUARD : warning : com.google.android.gms.internal.zzam: can't find referenced class org.apache.http.impl.cookie.DateParseException
2> PROGUARD : warning : com.google.android.gms.internal.zzam: can't find referenced class org.apache.http.impl.cookie.DateUtils
2> PROGUARD : warning : com.google.android.gms.internal.zzam: can't find referenced class org.apache.http.impl.cookie.DateUtils
2> PROGUARD : warning : com.google.android.gms.internal.zzan: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzan: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.ProtocolVersion
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.StatusLine
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.entity.BasicHttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicHeader
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicHttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicStatusLine
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.ProtocolVersion
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.entity.BasicHttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.entity.BasicHttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.entity.BasicHttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.entity.BasicHttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.entity.BasicHttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicHeader
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicHttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicHttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicHttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.message.BasicStatusLine
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.StatusLine
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.HttpResponse
2> PROGUARD : warning : com.google.android.gms.internal.zzao: can't find referenced class org.apache.http.HttpEntity
2> PROGUARD : warning : com.google.android.gms.internal.zzas: can't find referenced class android.net.http.AndroidHttpClient
2> PROGUARD : warning : com.google.android.gms.internal.zzas: can't find referenced class android.net.http.AndroidHttpClient
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzc: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement$Event
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement$Param
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement$UserProperty
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : com.google.firebase.messaging.zzd: can't find referenced class com.google.android.gms.measurement.AppMeasurement
2> PROGUARD : warning : there were 100 unresolved references to classes or interfaces.
2> PROGUARD : warning : there were 2 unresolved references to program class members.
2>
2>
2>"D:\Arvind.ch\SIS\SIS_Product\SIS-Global-QA-SY\edTheSIS\SISAPP\SISAPP.Droid.csproj" (Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
2>(_CompileToDalvikWithDx target) ->
2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2550,3): error MSB6006: "java.exe" exited with code 1.
2>
2> 169 Warning(s)
2> 1 Error(s)
2>
2>Time Elapsed 00:01:14.98
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
答案 0 :(得分:0)
经过长期研究,我找到了解决此问题的方法。
首先从here下载最新的Proguard文件,然后解压缩并复制到sdk路径C:\Program Files (x86)\Android\android-sdk\tools
,根据您的情况,该路径可能有所不同。
必须已经有一个proguard文件夹,将其重命名为proguard.old。现在,从proguard.old文件夹复制proguard-android
,proguard-android-optimize
,proguard-project
文件并将其粘贴到新创建的proguard文件夹中。
之后,请按照以下步骤操作
.cfg
。如果您获得warnings
这样的前缀progurd
PROGUARD:警告:com.appdynamics.eumagent.runtime.private
现在,您需要将此软件包添加到自定义的proguard.cfg文件中,例如
-dontwarn com.appdynamics.eumagent.runtime.**
对于-dontwarn
,请勿使用关键字class
。这里**
接受给定包的所有子类。
如果获取exception
,则需要找出引起问题的库,并使用-keep
关键字将其添加到proguard.cfg文件中。
-keep public class android.support.v7.widget.** { *; }
如果您仔细查看完整日志,则progaurd会发出所有警告,使我们易于发现问题。