我突然开始在我的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项目上仍收到此错误。
2 回答
FFIVE
TA贡献1797条经验 获得超6个赞
首先,如果无法解决清理nuget缓存应解决的问题,请尝试清理并还原nuget包,从工具>选项> nuget包管理器>清除所有nuget缓存,不要忘记将android 8作为目标android版本项目属性。
- 2 回答
- 0 关注
- 142 浏览
添加回答
举报
0/150
提交
取消