Java.exe退出代码1. Xamarin

时间:2015-12-14 09:07:00

标签: android xamarin

尝试为发布制作存档并出现此错误

Java heap size is set to 1G.PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.client.HttpClient

PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.client.HttpClient

PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.HttpEntityEnclosingRequest

PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.HttpEntityEnclosingRequest

PROGUARD : warning : there were 148 unresolved references to classes or interfaces.

PROGUARD : warning : there were 2 unresolved references to program class members.

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1833,3): error MSB6006: "java.exe" exited with code 1.

我在星期五制作了出版存档,一切都很好。昨天我有更新并安装它们,但这并没有解决问题

出了什么问题?

1 个答案:

答案 0 :(得分:5)

问题解决了

在解决方案中的Android项目中创建名为proguard.cfg的文件。右键单击并将Build Action设置为ProguardConfig

我将此添加到proguard文件

-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**

确保将文件保存为UTF-8而不是UTF-8 BOM