[android] No resource found that matches the given name 'Theme.AppCompat.Light'
时间:
2014-12-06 06:32:45
阅读:
348
评论:
收藏:
0
[点我收藏+]
在整合android过程中导入别人的项目出现下面的错误:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.Light‘.
通过stackoverflow查到其解决方法,如下:
1.File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
在"文件"中导入sdk路径extras\android\support\v7中的appcompat文件夹.如下图所示:
2.Project->
properties->Android. In the section library "Add" and choose "appCompat"
[android] No resource found that matches the given name 'Theme.AppCompat.Light'
原文:http://blog.csdn.net/eastmount/article/details/41772705