首页 > 其他 > 详细

layout图形化界面看不到内容 Failed to find the style corresponding to the id

时间:2015-12-26 13:24:12      阅读:670      评论:0      收藏:0      [点我收藏+]

 

1、问题

在创建新的工程的时候,选择目标SDK为api21,编译SDK为api23。创建出来的layout文件图形化界面中看不到,并且报错:

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.

 

2、解决方法

上网搜索发现解决方法,修改图形化中的api,改为低版本即可。如图所示:

技术分享

 

3、最终解决方法

通过上面的解决方法分析,估计问题应该出在SDK版本上。查看了一下SDK Manager,发现在创建工程时候选择的编译api在本地没有下载,将对应的编译工具下载后,重启eclipse,图形化界面就可以正常显示了。如下图所示,

技术分享

 

layout图形化界面看不到内容 Failed to find the style corresponding to the id

原文:http://www.cnblogs.com/huanyou/p/5077862.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!