Android开发提示Failed to find the style corresponding to the id ...

使用eclipse进行Android开发时,打开时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.


google了一下,老外是这样解决的,把api版本降低一下就好了,原因有可能是一些api在高版本中已经不支持




参考链接:

http://stackoverflow.com/questions/29824136/activity-main-xml-failed-to-find-the-style-corresponding-to-the-id-2130771996


我下载Android SDK之后运行Android SDK Manageer.exe更新了一整天,然后在Eclipse中装上ADT,差不多弄完之后开始写第一个Android程序:HelloWrold,一步一步创建了这个工程之后,按照教材上所说的,点开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.
这不按套路出牌啊,我刚开始学Android编程,不知道怎么回事啊???跪求大神指点迷津,跪了
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值