Eclipse creates an android project, but the layout file cannot be previewed normally

When eclipse creates an android project, it prompts when previewing the layout.xml file: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in, so the layout file cannot be previewed normally. The root of the problem: the SDK version is too high, and the ADT version is too low.

The solution is as follows:

1. Find the eclipse folder, open the eclipse software, create an android application project, click help and select install new software. In the Work with field, type: https://dl-ssl.google.com/android/eclipse/, select Developer Tools / Android Development Tools. Click next. start installation.

2. If the installation is unsuccessful, the second solution. Open the .xml file in the layout file, find the select android version button, and change the android version.

Eclipse creates an android project, but the layout file cannot be previewed normally
3. The third solution is to open project.properties in the android project and directly modify the version: target=android-18

4. The fourth solution:

Change the theme in your style file and add Base in front of Theme.AppCompat.Light.DarkActionBar. <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">

    <!-- API 14 theme customizations can go here. -->

</style>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326971117&siteId=291194637