简体   繁体   English

资源标识符“ App.xaml”已在Xamarin中的此程序集中使用[VS2017]

[英]Resource identifier 'App.xaml' has already been used in this assembly in Xamarin [VS2017]

I can build the solution but cannot run the solution via Live Player. 我可以构建解决方案,但不能通过Live Player运行该解决方案。 This error happened after I create sub-folder in my project and move some XAML file into that folder. 在项目中创建子文件夹并将某些XAML文件移动到该文件夹​​后,就会发生此错误。 I've already Clean & Rebuilt, Manually delete /obj and /bin folders, and re-install Visual Studio and Xamarin. 我已经清理并重建了,手动删除/ obj和/ bin文件夹,然后重新安装Visual Studio和Xamarin。 What should I do to solve this problem, please help. 我应该怎么做才能解决这个问题,请帮忙。 Thanks! 谢谢!

Full Error Log 完整错误日志

(1,1): error: Resource identifier 'App.xaml' has already been used in this assembly (1,1): error: Resource identifier 'MainPage.xaml' has already been used in this assembly (1,1): error: Dependent project PDTHP.csproj failed to build, using old version. (1,1):错误:此程序集中已使用资源标识符'App.xaml'(1,1):错误:已在此程序集中已使用资源标识符'MainPage.xaml'(1,1):错误:从属项目PDTHP.csproj使用旧版本生成失败。 ..Directory..(Project Name).Android\\MainActivity.cs (1,1): error: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?) Failed to debug your app. ..Directory ..((项目名称).Android \\ MainActivity.cs(1,1):错误:找不到类型或名称空间名称“ App”(您是否缺少using指令或程序集引用?)失败调试您的应用。

I've already solved the problem. 我已经解决了这个问题。 I don't know the cause yet but it works now. 我尚不知道原因,但现在可以了。 Just uninstall Live Player in mobile phone and re-install + pair again. 只需在手机中卸载Live Player,然后再次重新安装+配对即可。

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

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