试图为发布制作存档并出现此错误
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.
我在星期五做了存档发布,一切都很好.昨天我有更新并安装它们,但这并没有解决问题
怎么了?
问题解决了
proguard.cfg
在解决方案中创建在Android项目中命名的文件.右键单击并设置Build Action
为ProguardConfig
.
我将此添加到proguard文件中
-keep class com.google.android.gms.** { *; } -dontwarn com.google.android.gms.**
确保将文件保存为UTF-8而不是UTF-8 BOM