预览layout.xml文件时提示:
This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in
导致无法正常预览布局文件;
问题根源:SDK版本过高,ADT版本低;
解决办法有好几种,如下:
1.
- Click Help > Install New Software.
- In the Work with field, enter:
https://dl-ssl.google.com/android/eclipse/ - Select Developer Tools / Android Development Tools.
- Click Next and complete the wizard.
2.
|
|
Change android version while rendering layout. |
3,
Change the Target version to new updates you have. Otherwise, change what SDK version you have in the Android manifest file.
android:minSdkVersion="8"
android:targetSdkVersion="18"
本文介绍了解决Android开发中ADT插件版本与SDK版本不匹配导致的布局预览问题。提供了三种解决方法,包括更新ADT插件、更改预览时的Android版本以及调整AndroidManifest.xml文件中的目标SDK版本。
1000

被折叠的 条评论
为什么被折叠?



