将android-support-v7-appcompat导入eclipse时遇到的错误

时间:2015-01-06 16:00:42

标签: android

我做了什么:

  1. 我将android-support-v7-appcompat作为库项目导入 蚀
  2. 我收到的错误如何解决此问题
  3. ERROR:

    E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:70: error: Error: No resource found that matches the given name: attr 'android:textAlignment'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v11\themes_base.xml:338: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v14\themes_base.xml:29: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v11\themes_base.xml:345: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v14\themes_base.xml:37: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v11\themes_base.xml:352: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v14\themes_base.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v11\themes_base.xml:359: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v14\themes_base.xml:53: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:202: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:212: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:205: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:219: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:223: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:81: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:83: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:84: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:82: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:79: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:80: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:118: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:120: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:121: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:119: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:116: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:117: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:155: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:157: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:158: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:156: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:153: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:154: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:192: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:194: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    [2015-01-06 21:27:26 - android-support-v7-appcompat] 
    [2015-01-06 21:27:26 - android-support-v7-appcompat] E:\Workspaces\Workspace-7\android-support-v7-appcompat\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    

    更新

    我在这里删除了V4库 现在我得到了beloow错误,但上面的错误已经解决了

    error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    

1 个答案:

答案 0 :(得分:1)

解决了他自己的问题

  1. 右键单击appcompat_v7库并选择“属性”
  2. 现在,点击Android Option,
  3. 将项目构建路径设置为Android 5.0(API级别21)
  4. 应用更改。
  5. 现在清理+构建appcompat_v7库和您的项目