Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
程序错误(Xamarin c#)_C#_Android_Xamarin_Xamarin.android - Fatal编程技术网

程序错误(Xamarin c#)

程序错误(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

我正在写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 : 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.**