Xamarin Android Designer shows a black screen instead of the application interface

杀马特。学长 韩版系。学妹 提交于 2020-07-21 03:27:00

问题


Today I started to learn the world of application development for Android using the Xamarin platform for visual studio 2017. I followed Xamarin's official tutorials and videos on YouTube, when I opened my first project and went to the designer,the designer's screen was fully black. This doesn't happen in any guide or article I have read. Since I'm new, I don't have much idea where the problem might be, I'm attaching appropriate pictures.

My Visual Studio's Screen: Desirable

Xamarin tutorial's Screen: Available

Thanks in advance :)


回答1:


I had the same problem, and I found a good solution :

Try going to Tools -> Options and under Xamarin-> Android UI Designer, uncheck the option "Enable accelerated rendering".

Just close every xaml which are opened, and reopen there ! enjoy ! (I hope)




回答2:


First and foremost make sure that you have the latest JDK version installed. I had the same issue with the designer and fixed it by upgrading to JDK 1.8.0.161.




回答3:


I had the same problem when I created a new layout. What worked for me was to close and reopen Visual Studio.



来源:https://stackoverflow.com/questions/48308701/xamarin-android-designer-shows-a-black-screen-instead-of-the-application-interfa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!