【发布时间】:2019-03-08 18:55:46
【问题描述】:
我在调试 Android 项目时遇到问题。我可以部署到设备并运行它,一切正常,但如果我尝试调试,应用程序会部署到设备上并非常短暂地打开,启动画面出现但应用程序随后关闭。
我在 Visual Studio 2015 上使用 Xamarin 表单。
设备正在运行 Android Oreo (8.0.0)。另一台运行 Android 6.0.1 的设备调试正常。
输出显示如下:
InspectorDebugSession(11): StateChange: Start -> EntryPointBreakpointRegistered
InspectorDebugSession(11): Constructed
Android application is debugging.
InspectorDebugSession(11): HandleTargetEvent: TargetExited
InspectorDebugSession(11): Disposed
Couldn't connect to logcat, GetProcessId returned: 0
我检查了 Logcat,它似乎在查找 FFImageLoading 库时遇到了问题:
Time Device Name Type PID Tag Message
09-18 14:35:52.361 Huawei Nexus 6P Debug 1560 Mono AOT:
image '/usr/local/lib/mono/aot-cache/arm/FFImageLoading.Platform.dll.so'
not found: dlopen failed: library "/data/app/myapp.android.dev-
WEb1bz8edgF7vwx6uCoZ-A==/lib/arm/libaot-FFImageLoading.Platform.dll.so" not found
我已将 FFImageLoading 的 Nuget 包添加到我的项目中,Droid 项目参考如下图所示:
【问题讨论】:
标签: xamarin.forms xamarin.android android-6.0-marshmallow android-8.0-oreo ffimageloading