解決Eclipse匯入V7包後報的各種錯誤
阿新 • • 發佈:2019-01-25
匯入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即可