我正在开发xamarin表单应用程序,我将android项目设置为启动项目,并且当我在设备上运行poject时出现此错误
> 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 ==========
最好的解决方法at this post是更新nugat软件包,我这样做了,但问题仍然存在
2-首先我想了解问题,这是一个冲突,但是在哪里?
答案 0 :(得分:1)
检查是否在工具和扩展中禁用了Mono调试-> Visual Studio的Mono调试。启用它。或检查是否已启用Visual Studio建议的任何扩展。通过禁用Xamarin.Android SDK扩展对我来说,重新启动了Visual Studio,它对我有用。