4

我有問題,調試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

回答

2

這是一個known issue有奧利奧和Xamarin的Android在Visual Studio中的Windows。它顯然適用於Mac的Visual Studio。它將在即將發佈的版本中得到修復。與此同時,上面的bug鏈接底部附近還有一項工作(評論20)。

+0

非常感謝史蒂夫 – pixel

+1

我不相信這是奧利奧問題。即使使用Android 4.0.3也無法正常工作,行爲完全是他描述的。 – batmaci

2

這爲我工作: -

取消選中「使用共享運行時」在項目屬性> Android的 選項>包裝性能