解决Eclipse导入V7包后报的各种错误

来源:互联网 发布:网易邮箱服务器域名 编辑:程序博客网 时间:2024/06/15 05:53

导入V7包后出现的一些错误:如下


[2016-08-30 09:09:51 - android-support-v7-appcompat] D:\workSpaceEclipse\android-support-v7-appcompat\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.

[2016-08-30 09:09:51 - android-support-v7-appcompat]D:\workSpaceEclipse\android-support-v7-appcompat\res\values-v21\themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2016-08-30 09:09:51 - android-support-v7-appcompat]D:\workSpaceEclipse\android-support-v7-appcompat\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2016-08-30 09:09:51 - android-support-v7-appcompat]D:\workSpaceEclipse\android-support-v7-appcompat\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.


解决方式:

右键你导入的android-support-v7-appcompat—>properties—>选择左侧栏Android—>在project bulid target中选择api21以上的—>然后 clean即可


0 0