gpt4 book ai didi

debugging - Xamarin 调试在新创建的项目上损坏导致终止读取 : Bad file descriptor

转载 作者:行者123 更新时间:2023-12-02 07:32:02 28 4
gpt4 key购买 nike

这是一个非常奇怪的问题。我试图为我遇到的 Xamarin 问题创建一个示例项目。我为 Android、iOS 和 UWP 创建了一个“空白”Xamarin 项目,但没有进行任何更改。我在 Debug模式下运行它并崩溃。调试输出是

terminating
read: Bad file descriptor
read: Bad file descriptor
read: Bad file descriptor
read: Bad file descriptor
read: Bad file descriptor
read: Bad file descriptor
....
read: Bad file descriptor
read: Bad file descriptor
read: Bad file descriptor
Couldn't connect to logcat, GetProcessId returned: 0
Couldn't connect debugger. You can see more details in Xamarin Diagnostic output and the full exception on logs.

诊断窗口显示以下内容:
[D:]:                     $(MonoAndroidToolsDirectory) path `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android` is valid
[D:]: $(MonoAndroidBinDirectory) path `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android` is valid
[D:]: mscorlib.dll path `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0` is valid
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Version.txt` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Version` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\Version.txt` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\Version` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Version.txt` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Version` exists=True
[D:]: FindVersionFile: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Version, result=True
[I:]: Found Xamarin.Android 10.1.3.7
[I:sdk]: Runtime path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android
[I:sdk]: Framework path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0
[D:]: ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:]: ValidateAndroidNdkLocation: ``, result=False
[I:]: Looking for Android NDK...
[I:]: Looking for Android SDK...
[D:]: ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:]: ValidateAndroidNdkLocation: `C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b`, result=True
[D:]: ValidateJavaSdkLocation: `C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25`, result=True
[I:]: Tracking android devices started
[D:]: TrackDeviceTask got: 22X7N19322000015 device
[I:]: Got new device list from adb with 1 devices
[D:]: Tracking avd started
[D:]: avd watcher *.ini path: 'C:\Users\Paul\.android\avd'
[D:RunShellCommand]: 22X7N19322000015 getprop
[D:]: avd watcher: got device list from avd with 1 devices
[I:]: Looking for Android SDK...
[D:]: ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[W:]: AutoSdk cannot resolve dependencies: platform-tools@28.0.0
[D:]: ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:]: ValidateAndroidNdkLocation: `C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b`, result=True
[D:]: ValidateJavaSdkLocation: `C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25`, result=True
[D:]: $(MonoAndroidToolsDirectory) path `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android` is valid
[D:]: $(MonoAndroidBinDirectory) path `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\` is valid
[D:]: mscorlib.dll path `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0` is valid
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Version.txt` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Version` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\Version.txt` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\Version` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Version.txt` exists=False
[D:]: GetSdkPath `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Version` exists=True
[D:]: FindVersionFile: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Version, result=True
[I:]: Found Xamarin.Android 10.1.3.7
[I:]: Looking for Android SDK...
[D:]: ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:RunShellCommand]: 22X7N19322000015 am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_28,com.companyname.listviewproblem" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
[D:RunShellCommand]: 22X7N19322000015 cat /data/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /dbdata/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /data/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /dbdata/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 "pm" "list" "packages" "-f"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.DebugRuntime"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.DebugRuntime"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.Platform.ApiLevel_28"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.Platform.ApiLevel_28"
[D:RunShellCommand]: 22X7N19322000015 pm install -d "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
[D:RunShellCommand]: 22X7N19322000015 rm "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
[D:RunShellCommand]: 22X7N19322000015 pm install -d "/data/local/tmp/Mono.Android.Platform.ApiLevel_28.apk"
[D:RunShellCommand]: 22X7N19322000015 rm "/data/local/tmp/Mono.Android.Platform.ApiLevel_28.apk"
[D:RunShellCommand]: 22X7N19322000015 cat /data/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /dbdata/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 "pm" "list" "packages" "-f"
[D:RunShellCommand]: 22X7N19322000015 getprop
[D:RunShellCommand]: 22X7N19322000015 am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_28,com.companyname.listviewproblem" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
[D:RunShellCommand]: 22X7N19322000015 cat /data/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /dbdata/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /data/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 cat /dbdata/system/packages.xml
[D:RunShellCommand]: 22X7N19322000015 "pm" "list" "packages" "-f"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.DebugRuntime"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.DebugRuntime"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.Platform.ApiLevel_28"
[D:RunShellCommand]: 22X7N19322000015 pm uninstall "Mono.Android.Platform.ApiLevel_28"
[D:RunShellCommand]: 22X7N19322000015 pm install -d "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
[D:RunShellCommand]: 22X7N19322000015 rm "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
[D:RunShellCommand]: 22X7N19322000015 pm install -d "/data/local/tmp/Mono.Android.Platform.ApiLevel_28.apk"
[D:RunShellCommand]: 22X7N19322000015 rm "/data/local/tmp/Mono.Android.Platform.ApiLevel_28.apk"
[D:RunShellCommand]: 22X7N19322000015 pm install -d "/data/local/tmp/com.companyname.listviewproblem-Signed.apk"
[D:RunShellCommand]: 22X7N19322000015 rm "/data/local/tmp/com.companyname.listviewproblem-Signed.apk"
[D:RunShellCommand]: 22X7N19322000015 "pm" "path" "com.companyname.listviewproblem"
[D:RunShellCommand]: 22X7N19322000015 "echo" "-n" "${EMULATED_STORAGE_SOURCE}"
[D:RunShellCommand]: 22X7N19322000015 "echo" "-n" "${EMULATED_STORAGE_TARGET}"
[D:RunShellCommand]: 22X7N19322000015 am broadcast -a "mono.android.intent.action.EXTERNAL_STORAGE_DIRECTORY" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.ExternalStorageDirectory"
[D:RunShellCommand]: 22X7N19322000015 "echo" "-n" "${EXTERNAL_STORAGE}"
[D:RunShellCommand]: 22X7N19322000015 cd /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__ || exit 1; for f in *; do echo $f; done;
[D:NotifyPhase]: Enumerating remote files
[D:NotifyPhase]: Determining required operations
[D:NotifyPhase]: Creating directories
[D:NotifySync]: CreateDirectory /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__ 0
[D:NotifyPhase]: Uploading files
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\ListViewProblem.Android.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/ListViewProblem.Android.dll 196608
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\FormsViewGroup.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/FormsViewGroup.dll 23152
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\ListViewProblem.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/ListViewProblem.dll 6656
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Core.Common.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Core.Common.dll 37520
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Core.Runtime.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Core.Runtime.dll 27280
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Lifecycle.Common.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Lifecycle.Common.dll 55960
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Lifecycle.LiveData.Core.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Lifecycle.LiveData.Core.dll 36520
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Lifecycle.LiveData.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Lifecycle.LiveData.dll 31392
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Lifecycle.Runtime.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Lifecycle.Runtime.dll 31392
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Arch.Lifecycle.ViewModel.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Arch.Lifecycle.ViewModel.dll 34976
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Animated.Vector.Drawable.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Animated.Vector.Drawable.dll 75952
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Annotations.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Annotations.dll 160408
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.AsyncLayoutInflater.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.AsyncLayoutInflater.dll 29352
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Collections.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Collections.dll 98968
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Compat.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Compat.dll 1849488
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.CoordinaterLayout.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.CoordinaterLayout.dll 135840
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Core.UI.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Core.UI.dll 47248
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Core.Utils.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Core.Utils.dll 24216
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.CursorAdapter.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.CursorAdapter.dll 65688
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.CustomTabs.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.CustomTabs.dll 199320
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.CustomView.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.CustomView.dll 87192
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Design.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Design.dll 1385616
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.DocumentFile.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.DocumentFile.dll 35992
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.DrawerLayout.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.DrawerLayout.dll 87192
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Fragment.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Fragment.dll 389784
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Interpolator.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Interpolator.dll 26784
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Loader.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Loader.dll 91792
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.LocalBroadcastManager.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.LocalBroadcastManager.dll 23728
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Media.Compat.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Media.Compat.dll 798880
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Print.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Print.dll 37008
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.SlidingPaneLayout.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.SlidingPaneLayout.dll 65696
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.SwipeRefreshLayout.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.SwipeRefreshLayout.dll 83624
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Transition.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Transition.dll 313496
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.v4.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.v4.dll 41096
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.v7.AppCompat.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.v7.AppCompat.dll 2103960
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.v7.CardView.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.v7.CardView.dll 58520
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.v7.RecyclerView.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.v7.RecyclerView.dll 882848
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.Vector.Drawable.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.Vector.Drawable.dll 62112
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.VersionedParcelable.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.VersionedParcelable.dll 116392
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Android.Support.ViewPager.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Android.Support.ViewPager.dll 131728
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Essentials.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Essentials.dll 169080
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Core.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Core.dll 1024632
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Platform.Android.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Platform.Android.dll 744960
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Platform.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Platform.dll 127104
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Xaml.dll /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Xaml.dll 108664
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\ListViewProblem.Android.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/ListViewProblem.Android.pdb 33940
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\FormsViewGroup.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/FormsViewGroup.pdb 9332
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\ListViewProblem.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/ListViewProblem.pdb 1368
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Essentials.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Essentials.pdb 61216
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Core.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Core.pdb 391732
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Platform.Android.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Platform.Android.pdb 308856
[D:NotifySync]: CopyFile C:\Projects\TinyGreenBits\ListViewProblem\ListViewProblem\ListViewProblem.Android\obj\Debug\90\android\assets\Xamarin.Forms.Xaml.pdb /sdcard/Android/data/com.companyname.listviewproblem/files/.__override__/Xamarin.Forms.Xaml.pdb 39120
[D:NotifyPhase]: Upload completed
[D:RunShellCommand]: 22X7N19322000015 date +%s
[D:RunShellCommand]: 22X7N19322000015 setprop "debug.mono.extra" "debug=127.0.0.1:29230:29231,timeout=1583182513,loglevel=0,server=y"
[D:RunShellCommand]: 22X7N19322000015 getprop
[D:RunShellCommand]: 22X7N19322000015 "echo" "-n" "${EMULATED_STORAGE_SOURCE}"
[D:RunShellCommand]: 22X7N19322000015 "echo" "-n" "${EMULATED_STORAGE_TARGET}"
[D:RunShellCommand]: 22X7N19322000015 am broadcast -a "mono.android.intent.action.EXTERNAL_STORAGE_DIRECTORY" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.ExternalStorageDirectory"
[D:RunShellCommand]: 22X7N19322000015 "echo" "-n" "${EXTERNAL_STORAGE}"
[D:RunShellCommand]: 22X7N19322000015 am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.listviewproblem/crc64ff42351e0d4fc5b3.MainActivity"
[D:RunShellCommand]: 22X7N19322000015 ps -A
[D:RunShellCommand]: 22X7N19322000015 am force-stop com.companyname.listviewproblem
[D:RunShellCommand]: 22X7N19322000015 setprop "debug.mono.connect" ""

据我所知,这里没有什么真正令人不安的地方。

在 logcat 中,我看到如下内容:
03-02 22:22:03.098: A/monodroid(29951): No assemblies found in '/data/user/0/com.companyname.listviewproblem/files/.__override__' or '/storage/4A21-0000/Android/data/com.companyname.listviewproblem/files/.__override__'. Assuming this is part of Fast Deployment. Exiting...
03-02 22:22:03.102: E/libc++abi(29951): terminating
03-02 22:22:03.102: A/libc(29951): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 29951 (listviewproblem), pid 29951 (listviewproblem)

切换到“发布”模式,瞧,应用程序运行。现在奇怪的是,我已经尝试了 4 次,每次结果都以相同的方式,在 Debug模式下崩溃。

看起来我的机器上的“一般”内容已损坏。我需要清理什么才能让 Debug模式再次工作。

顺便提一句。我正在处理的应用程序(这只是一个证明 Xamarin 中的错误的项目)工作正常,我可以在 Debug模式下运行它。

最佳答案

问题是 Visual Studio 中称为“使用快速部署(仅限 Debug模式)”的设置。如果我关闭它,调试就会在我的手机上重新开始工作。

关于debugging - Xamarin 调试在新创建的项目上损坏导致终止读取 : Bad file descriptor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60496867/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com