开发者社区> 问答> 正文

Failed to find the style corresponding to the id?

我下载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编程,不知道怎么回事啊?

展开
收起
爵霸 2016-06-20 10:21:31 2856 0
1 条回答
写回答
取消 提交回答
  • 在 eclipse 里将 layout 图形化编辑里,上面有一排按钮,有个选android api level的按钮,鼠标放上去显示”android version to use when rendering layout in Eclipse",
    此处尝试将 api level 修改为 20,这个api level 不影响程序,只是用于eclipse layout 渲染用

    2019-07-17 19:43:43
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Nobody puts Spark in the Container 立即下载
AutoAlerts-From Data to Action 立即下载
Why you should care about data layout in the file system 立即下载