Android的调试未能与“无法连接到logcat中,GetProcessId返回:0” FFImageLoading.Platform.dll.so未找到

问题描述:

我有问题,调试Android项目。我可以部署到设备并运行它,所有工作正常,但如果我尝试调试,应用程序会部署到设备并且非常短暂地打开,启动屏幕显示,但应用程序然后关闭。Android的调试未能与“无法连接到logcat中,GetProcessId返回:0” FFImageLoading.Platform.dll.so未找到

我使用的Visual Studio Xamarin形式2015年

设备运行的是Android奥利奥(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 

我加入的NuGet包FFImageLoading我的项目和Droid项目参考文献表现出来,如下图:

enter image description here

这是一个known issue有奥利奥和Xamarin的Android在Visual Studio中的Windows。它显然适用于Mac的Visual Studio。它将在即将发布的版本中得到修复。与此同时,上面的bug链接底部附近还有一项工作(评论20)。

+0

非常感谢史蒂夫 – pixel

+1

我不相信这是奥利奥问题。即使使用Android 4.0.3也无法正常工作,行为完全是他描述的。 – batmaci

这为我工作: -

取消选中“使用共享运行时”在项目属性> Android的 选项>包装性能