Xamarin android .axml文件加载错误:该项目不支持预览 [英] Xamarin android .axml file loading error : This item doesn't support previewing

查看:156
本文介绍了Xamarin android .axml文件加载错误:该项目不支持预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天安装了Xamarin&创建项目时,一切正常,但是当我要打开布局文件夹中的.axml文件时,Visual Studio崩溃!什么也没发生Visual Studio的速度降低了PC的性能.我得到的唯一错误是:This item doesn't support previewing!

I have installed Xamarin today & when I create a project, everything goes right but when I want to open the .axml file in layout folder, visual studio crashes! nothing happens & speed of the visual studio reduces the PCs performance. the only error that I get is: This item doesn't support previewing!

我该怎么办?请帮忙... .谢谢

What should I do? Please help... . Thanks

推荐答案

xamarin android设计器存在很多问题,并且有很多社区讨论可以找到:

The xamarin android designer has a lot of problems and a lot of community discussions which can be found :

https://forums.xamarin.com/discussion/118384/android-designer-does-not-work-well https://forums.xamarin.com/discussion/125879/designer-not-loadinglayout-at-all https://forums.xamarin.com/Discussion/76851/visual-studio-2015-android-designer-not-working https://forums. xamarin.com/discussion/82082/android-designer-not-working-in-visual-studio-enterprise-2015 https://forums.xamarin.com/Discussion/6258/android-designer-doesnt-work-in-vs-2012 https://developercommunity.visualstudio.com/content/problem/99268/xamarin-android-designer-not-working.html

在阅读了所有讨论之后,我无法理解问题的真正核心原因,实际上我很沮丧地修复了Visual Studio,现在当我与设计者打开文件时,我可以将AXML文件视为XML. (崩溃已停止).但是我仍然无法打开设计器,所以我做的是我在使用android studio上的经验,但是我从未遇到过这个问题,我开始在Android Studio上使用AXML,然后将其复制粘贴到xamarin上,并且可以工作像魅力一样.

After reading all this discussion I could not understand the actual core reason of the issue and I was actually frustrated to the point where I repaired my Visual studio, now I could see the AXML file as XML when I opened it with the designer(crash stopped). But I could still not open the designer, So what I did was as I had experience with working with the android studio and I never faced this issue, I started working on Android studio for the AXML and copy-pasted that to xamarin and it worked like a charm.

在查询的情况下还原

这篇关于Xamarin android .axml文件加载错误:该项目不支持预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆