Method to solve the problem that eclipse cannot preview the layout file normally when creating Android project

1、 Problem description

Today, the version of the Android SDK is updated to Android 5.1 using the SDK manager. When eclipse creates an Android project, it previews the activity_ Prompt: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in. The layout file cannot be previewed normally, as shown in the following figure:

I checked the reasons on the Internet and found the root cause of the problem: the SDK version is too high and the ADT version is too low.

2、 Solution to the problem - upgrade ADT plug-in

View the current version of ADT plug-in

Online update ADT plug-in: help -- > install new software,

Click [finish] to start the installation. After the installation, restart eclipse. After the ADT plug-in is updated, you can preview to the view normally, as shown in the following figure:

This problem is solved by online updating the ADT plug-in. This online updating ADT plug-in requires FQ to update successfully.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>