MonoAndroid 8.0版编译错误

我突然开始在我的Xamarin表单项目中收到此错误


/Library/Frameworks/Mono.framework/Versions/5.8.1/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(184,5):


 error : Your project is not referencing the "MonoAndroid,Version=v8.0" framework. Add a reference to "MonoAndroid,Version=v8.0" in the "frameworks" section of your project.json, and then re-run NuGet restore.

我尝试添加其他引用,但无法解决问题。因此,我将文件重置为可以正常工作的最后一次提交,但是即使那样,我在Android项目上仍收到此错误。


呼如林
浏览 143回答 2
2回答

FFIVE

首先,如果无法解决清理nuget缓存应解决的问题,请尝试清理并还原nuget包,从工具>选项> nuget包管理器>清除所有nuget缓存,不要忘记将android 8作为目标android版本项目属性。
打开App,查看更多内容
随时随地看视频慕课网APP