而充气cardview错误 [英] Error while inflating cardview

查看:229
本文介绍了而充气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.

步骤


  1. 让app_compat_v7在工作区中的库项目

  2. 导入Android的card_view在工作区中的库

  3. 现在,创建新的项目和环节,完全建立所有这三个项目

如果您已经创建了所有三个项目,它是仍然没有工作,然后尝试这些步骤

In case you have already created all the three projects and it is still not working then try these steps


  1. 关闭主项目

  2. 关闭card_view项目

  3. 现在,删除app_compat_v7库的bin文件夹,并生成项目。

  4. 接下来打开card_view项目,并建立两个库

  5. 然后打开主项目,并构建所有三个项目

  6. 错误仍然存​​在。重新启动Eclipse。这就是它。

这为我工作,希望它会为你工作,以及。享受:)

This worked for me and hope it will work for you as well. Enjoy :)

这篇关于而充气cardview错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆