程序错误(Xamarin c#)
我正在写Android应用程序 当我设置释放模式并运行它时,有这个程序错误(Xamarin c#),c#,android,xamarin,xamarin.android,C#,Android,Xamarin,Xamarin.android,我正在写Android应用程序 当我设置释放模式并运行它时,有这个 java.exe exited with code 1 Java堆大小设置为1G 输出具有以下特性 1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair 1>PROGUARD : warn
java.exe exited with code 1
Java堆大小设置为1G
输出具有以下特性
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$RequestPropertiesCallback: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Files
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Files
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Files
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
1>PROGUARD : warning : okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.Path
1>PROGUARD : warning : okio.Okio: can't find referenced class java.nio.file.OpenOption
1>PROGUARD : warning : okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
1>PROGUARD : warning : there were 20 unresolved references to classes or interfaces.
如何解决此问题
谢谢试试这个:
在解决方案中的Android项目内创建名为proguard.cfg
的文件
右键单击并将生成操作设置为ProguardConfig
参考:
加:
-keep class com.package.*{ *; }
-dontwarn com.package.**
或
例如:
-keep public class com.koushikdutta.urlimageviewhelper.* { public *; }
-dontwarn com.koushikdutta.urlimageviewhelper.**
我有proguard_xamarin.cfg。这是正确的文件吗?您可以使用proguard_xamarin.cfgCreate inside solution,您的意思是在root中?以及如何设置构建操作?我尝试在proguard_xamarin.cfg中添加您的示例,但再次出现java.exe错误@БССССССМММц:确保您的自定义Proguardcfg文件保存为UTF-8,而不是UTF-8 BOM
-keep public class com.koushikdutta.urlimageviewhelper.* { public *; }
-dontwarn com.koushikdutta.urlimageviewhelper.**