xamarin Native Portable跨平台apk

时间:2018-04-13 12:08:45

标签: android xamarin visual-studio-2015 cross-platform

早上好, 我尝试了Microsoft教程中的天气应用程序,了解如何在Visual Studio中使用Xamarin构建具有本机UI的应用程序" Link"当我通过视觉工作室2015 debuge时工作正常,但当我发布并在我的设备上获取apk时它打开然后当我输入邮政编码它给我天气应用程序stooped工作我googled遍布互联网但我无法找到任何解决方案,所以如果他们有任何建议我会很高兴。

我也尝试过这个教程来发布一个apk但仍无法正常工作

docs.microsoft.com

谢谢

编辑:

检查logcat后我发现了这个:

  

时间设备名称类型PID标记消息   04-13 14:29:34.800 LENOVO A7020a48信息11934 AEE#04 pc 000000000021e1b0 /data/app/WeatherApp.Droid-1/lib/arm64/libmonosgen-2.0.so   04-13 14:29:34.781 LENOVO A7020a48信息11934 AEE pid:11794,tid:11933,name:Threadpool work>>> WeatherApp.Droid<<<   04-13 14:29:34.118 LENOVO A7020a48调试11794 Mono AOT模块' / Users / builder / data / lanes / 3511 / 77cb8568 / source / monodroid / builds / install / mono-aarch64 / lib / mono / aot-高速缓存/ arm64 / System.ServiceModel.Internals.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.ServiceModel.Internals.dll.so"未找到   04-13 14:29:34.117 LENOVO A7020a48调试11794 Mono AOT模块' System.ServiceModel.Internals.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.ServiceModel.Internals.dll.so"未找到   04-13 14:29:33.766 LENOVO A7020a48调试11794单AOT模块' /用户/助洗剂/数据/通道/ 3511 / 77cb8568 /源极/ MonoDroid的/建立/安装/单aarch64 / LIB /单声道/ aot-高速缓存/ arm64 / System.Xml.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.Xml.dll.so"未找到   04-13 14:29:33.766 LENOVO A7020a48调试11794 Mono AOT模块' System.Xml.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.Xml.dll.so"未找到   04-13 14:29:33.744 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp.Droid [0x7f8c6ffb80] - >系统[0x7f8f272980]:9   04-13 14:29:33.577 LENOVO A7020a48调试11794 Mono AOT模块' / Users / builder / data / lanes / 3511 / 77cb8568 / source / monodroid / builds / install / mono-aarch64 / lib / mono / aot-高速缓存/ arm64 / Mono.CSharp.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-Mono.CSharp.dll.so"未找到   04-13 14:29:33.576 LENOVO A7020a48调试11794 Mono AOT模块' Mono.CSharp.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-Mono.CSharp.dll.so"未找到   04-13 14:29:33.384 LENOVO A7020a48调试11794单AOT模块' /用户/助洗剂/数据/通道/ 3511 / 77cb8568 /源极/ MonoDroid的/建立/安装/单aarch64 / LIB /单声道/ aot-高速缓存/ arm64 / System.Runtime.Serialization.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.Runtime.Serialization.dll.so"未找到   04-13 14:29:33.383 LENOVO A7020a48调试11794单声道AOT模块' System.Runtime.Serialization.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.Runtime.Serialization.dll.so"未找到   04-13 14:29:32.713 LENOVO A7020a48调试11794 libc-netbsd getaddrinfo:api.openweathermap.org从代理获取结果gai_error = 0   04-13 14:29:32.711 LENOVO A7020a48调试316 libc-netbsd res_queryN name = api.openweathermap.org,class = 1,type = 1   04-13 14:29:32.711 LENOVO A7020a48调试316 libc-netbsd res_queryN name = api.openweathermap.org,class = 1,type = 28   04-13 14:29:32.711 LENOVO A7020a48调试316 libc-netbsd res_queryN name = api.openweathermap.org继承   04-13 14:29:32.710 LENOVO A7020a48调试316 libc-netbsd [getaddrinfo]:mtk hostname = api.openweathermap.org; servname = 0;式网络标识符号= 1066;标记= 1066   04-13 14:29:32.710 LENOVO A7020a48调试316 libc-netbsd getaddrinfo:api.openweathermap.org从代理获取结果gai_error = 11   04-13 14:29:32.709 LENOVO A7020a48 Debug 11794 libc-netbsd [getaddrinfo]:mtk hostname = api.openweathermap.org; servname = 0;式网络标识符号= 0;标记= 0   04-13 14:29:32.409 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > Newtonsoft.Json [0x7f7b171d00]:2   04-13 14:29:32.405 LENOVO A7020a48调试11794 Mono AOT模块' / Users / builder / data / lanes / 3511 / 77cb8568 / source / monodroid / builds / install / mono-aarch64 / lib / mono / aot-高速缓存/ arm64 / System.Net.Http.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.Net.Http.dll.so"未找到   04-13 14:29:32.405 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > System.Net.Http [0x7f73a9f180]:2   04-13 14:29:32.404 LENOVO A7020a48调试11794 Mono AOT模块' System.Net.Http.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-System.Net.Http.dll.so"未找到   04-13 14:29:32.384 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > System.Linq.Expressions [0x7f7b171c00]:2   04-13 14:29:32.381 LENOVO A7020a48调试11794 Mono AOT模块' / Users / builder / data / lanes / 3511 / 77cb8568 / source / monodroid / builds / install / mono-aarch64 / lib / mono / aot-高速缓存/ arm64 / Microsoft.CSharp.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-Microsoft.CSharp.dll.so"未找到   04-13 14:29:32.381 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > Microsoft.CSharp [0x7f73a9f080]:2   04-13 14:29:32.380 LENOVO A7020a48调试11794 Mono AOT模块' Microsoft.CSharp.dll.so'找不到:dlopen失败:library" /data/app/WeatherApp.Droid-1/lib/arm64/libaot-Microsoft.CSharp.dll.so"未找到   04-13 14:29:32.376 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > System.Dynamic.Runtime [0x7f7b171b00]:2   04-13 14:29:32.336 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > System.Threading.Tasks [0x7f7b171a00]:2   04-13 14:29:32.320 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp [0x7f8c6ffc80] - > System.Runtime [0x7f7b171100]:3   04-13 14:29:32.318 LENOVO A7020a48调试11794单声道装配参考addref WeatherApp.Droid [0x7f8c6ffb80] - > WeatherApp [0x7f8c6ffc80]:2

0 个答案:

没有答案