No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案

No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案


首先这个问题的产生是由于缺少Theme.AppCompat.Light这个主题产生的,而这个主题 的是存在于androidsupportappcompat-v7支持库中的,注意不是jar包。
No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案是
第一步:
    从网上下载appcompat-v7工程库也可以直接在 sdk路径extrasandroidsupportv7 <ignore_js_op> 中找到。
第二步:
   把工程库导入到Eclipse , <ignore_js_op> ,跟导入工程一样。

第三步:
   项目右键--------Properties------android----add-----选择上一步导入的lib库-----ok
    <ignore_js_op>
导入成功状态
<ignore_js_op> 如果为红色xx则导入不成功


到此结束,最后看看原先有错的工程,原先的红色xx没有了
原文地址:https://www.cnblogs.com/zarea/p/4489376.html