打开activity_main.xml时不正常,如下提示
This version of the rendering library is more recent than your version of ADT plug-in. Please update
上网查了一下,SDK版本要高于ADT版本。需要更新Eclipse插件:
Help --> Install New Softwares...,在Work with 中输入如下链接:
https://dl-ssl.google.com/android/eclipse/
更新是需要vpn翻墙
=============================================================
更新完成后正常显示了,运行也正常,只是在重新创建新的项目时,activity_main.xml由不正常了,如下提示
Failed to find the style corresponding to the id 2130772026
Failed to find the style corresponding to the id 2130771996
java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log
The following classes could not be instantiated:
- android.support.v7.internal.app.WindowDecorActionBar (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
解决办法:
将Eclipse重启就正常了,感觉比较坑。