而充气cardview错误 [英] Error while inflating cardview
问题描述
我想在我的项目中使用cardview。结果
我下载了谷歌发挥服务和进口cardview在我的项目库。结果
之后,我收到以下错误:
I am trying to use cardview in my project.
I downloaded google play services and imported cardview as a library in my project.
After that I am getting the below error:
资源ID 0x7f070001的类型风格不(而不是颜色)
Resource id 0x7f070001 is not of type STYLE (instead color)
任何帮助将是AP preciated作为最早的。
Any help would be appreciated as earliest.
推荐答案
我也面临着同样的问题,而使用的Eclipse ADT,这是为我工作。
I too faced the same issue while using eclipse adt and this is what worked for me.
步骤
- 让app_compat_v7在工作区中的库项目
- 导入Android的card_view在工作区中的库
- 现在,创建新的项目和环节,完全建立所有这三个项目
如果您已经创建了所有三个项目,它是仍然没有工作,然后尝试这些步骤
In case you have already created all the three projects and it is still not working then try these steps
- 关闭主项目
- 关闭card_view项目
- 现在,删除app_compat_v7库的bin文件夹,并生成项目。
- 接下来打开card_view项目,并建立两个库
- 然后打开主项目,并构建所有三个项目
- 错误仍然存在。重新启动Eclipse。这就是它。
这为我工作,希望它会为你工作,以及。享受:)
This worked for me and hope it will work for you as well. Enjoy :)
这篇关于而充气cardview错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!