简体   繁体   English

Xamarin无法打开类文件

[英]Xamarin Unable to open class file

Good day all. 美好的一天。

I have installed the brand new Visual Studio 2017 with the latest Xamarin. 我用最新的Xamarin安装了全新的Visual Studio 2017。 I have problems opening existing projects but even creating a brand new Cross-Platform App(Xamarin.Forms PCL) I cant even run the app as is? 我在打开现有项目时遇到问题,但即使创建一个全新的跨平台应用程序(Xamarin.Forms PCL),我甚至无法按原样运行应用程序? The error is as follow 错误如下

"Unable to open class file obj\\Debug\\android\\src\\android\\support\\graphics\\drawable\\animated\\R.java: Permission denied". “无法打开类文件obj \\ Debug \\ android \\ src \\ android \\ support \\ graphics \\ drawable \\ animated \\ R.java:Permission denied”。

But when going to the location above... I can only find up to the point obj\\Debug\\android\\src inside the Android project? 但是当到达上面的位置时......我只能在Android项目中找到obj \\ Debug \\ android \\ src这一点? Any help will be appreciated.Thanks! 任何帮助将不胜感激。谢谢!

  • Right Click your Android project which is under the Solution Explorer 右键单击解决方案资源管理器下的Android项目
  • Select Properties menu item 选择“属性”菜单项
  • Select Android Options tab 选择Android选项卡
  • Uncheck "Use Fast Deployment(debug mode only)" 取消选中“使用快速部署(仅限调试模式)”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM