XML Error in Eclipse while viewing Graphical Layout of Xml

烈酒焚心 提交于 2019-12-05 23:59:59

There is a mismatch between your target SDK version and your Graphical Layout target, should be an easy fix.

If you don't know it off the top of your head, you can get your Android SDK version for your project from right-clicking on your project name, going to Properties, selecting "Android", and looking for the test in the "platform" column for the row with a checkmark.

Then in the Graphical Layout for your XML file, in the top right in between the Locale selector and the Create button is a drop-down for Android versions. Change this to match the one for your project, and the errors should go away the graphical preview will render correctly.

its very semple

all you have to do is change android version used to render layout in eclipse

android version used to render layout Button

hope that help you.

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