Xamarin android .axml file loading error : This it

2019-08-20 06:04发布

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

1条回答
神经病院院长
2楼-- · 2019-08-20 07:00

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-loading-layout-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

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.

Revert in case of queries

查看更多
登录 后发表回答