SDK版本要高于ADT版本


打开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重启就正常了,感觉比较坑。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值