无法开始调试 vs 2017
Unable to start debugging vs 2017
我正在开发 xamarin 表单应用程序,我将 android 项目设置为启动项目,当我 运行 我的设备上的项目时,我收到了这个错误
> Start debugging Android application ...
> Starting Android application ...
> An error occured. See full exception on logs for more details.
> Unable to start debugging.
> The specified file can not be found.
1- 我在哪里可以找到日志文件?
这是构建的输出
Starting runtime checks
Detecting installed packages
Detecting installed packages...
1>------ Build started: Project: MobileApp2, Configuration: Debug Any CPU ------
Runtime checks completed
2> No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
3>Starting deploy Samsung SM-J320F ...
3>Deploying Samsung SM-J320F ...
3>Build started.
3>Project "MobileApp2.Android.csproj" (Install target(s)):
3>Project "MobileApp2.csproj" (GetTargetFrameworks target(s)):
3>Done building project "MobileApp2.csproj".
3>Project "MobileApp2.csproj" (GetTargetPath target(s)):
3>Done building project "MobileApp2.csproj".
3>Project "MobileApp2.csproj" (GetNativeManifest target(s)):
3>Done building project "MobileApp2.csproj".
3>Done building project "MobileApp2.Android.csproj".
3>Build succeeded.
3>Deploy successfully on Samsung SM-J320F
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
最好的解决方案 是更新 nugat 包,我这样做了,但问题仍然存在
2-首先我想了解这个问题,这是一个冲突,但是在哪里?
检查您是否在工具和扩展中禁用了单声道调试 -> visual studio 的单声道调试。启用它。或者检查您是否启用了 visual studio 建议的任何扩展。对我来说,通过禁用 Xamarin.Android SDK 扩展,重新启动 visual studio,它对我有用。
我正在开发 xamarin 表单应用程序,我将 android 项目设置为启动项目,当我 运行 我的设备上的项目时,我收到了这个错误
> Start debugging Android application ...
> Starting Android application ...
> An error occured. See full exception on logs for more details.
> Unable to start debugging.
> The specified file can not be found.
1- 我在哪里可以找到日志文件?
这是构建的输出
Starting runtime checks
Detecting installed packages
Detecting installed packages...
1>------ Build started: Project: MobileApp2, Configuration: Debug Any CPU ------
Runtime checks completed
2> No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
3>Starting deploy Samsung SM-J320F ...
3>Deploying Samsung SM-J320F ...
3>Build started.
3>Project "MobileApp2.Android.csproj" (Install target(s)):
3>Project "MobileApp2.csproj" (GetTargetFrameworks target(s)):
3>Done building project "MobileApp2.csproj".
3>Project "MobileApp2.csproj" (GetTargetPath target(s)):
3>Done building project "MobileApp2.csproj".
3>Project "MobileApp2.csproj" (GetNativeManifest target(s)):
3>Done building project "MobileApp2.csproj".
3>Done building project "MobileApp2.Android.csproj".
3>Build succeeded.
3>Deploy successfully on Samsung SM-J320F
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
最好的解决方案
2-首先我想了解这个问题,这是一个冲突,但是在哪里?
检查您是否在工具和扩展中禁用了单声道调试 -> visual studio 的单声道调试。启用它。或者检查您是否启用了 visual studio 建议的任何扩展。对我来说,通过禁用 Xamarin.Android SDK 扩展,重新启动 visual studio,它对我有用。