appcompat_v7 res values-v21 error

[2014-11-03 11:30:25 - AndroidApp] appcompat_v7/res/values-v21/styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
[2014-11-03 11:30:25 - AndroidApp] appcompat_v7/res/values-v21/styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.


To resolve this issue,

  1. Right Click on appcompat_v7 library and select Properties
  2. Now, Click on Android Option,
  3. Set Project Build Path as Android 5.0 (API level 21)
  4. Apply Changes.
  5. Now go to project.properties file under appcompat_v7 library,
  6. Set the project target as : target=android-21
  7. Now Clean + Build appcompat_v7 library and your projects

Keep it simple!
作者:N3verL4nd
知识共享,欢迎转载。
原文地址:https://www.cnblogs.com/lgh1992314/p/5834772.html