error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.Light’.
最好的方法就是导入android-support-v7-appcompat库。下面具体介绍:
1 通过Android SDK Manager下载最新的Android Support Library。
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom 2 下载完成之后,可以在以下目录找到AppCompat library:
android-sdk/extras/android/support/v7/appcompat
将此目录下的项目导入到Eclipse中

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom 3 右键点击我们的Android项目,选择Properties,左侧选择Android,在下方Library框里点击Add,最后选择appcompat_v7,确定。此时问题就解决了。error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
4 但在以上导入appcompat_v7到Eclipse之后,有可能还会出现错误提示,比如

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
出现此问题的原因是appcompat_v7已经更新到了最新版本并且高于编译环境的SDK版本,此时在Android SDK Manager将SDK及编译工具更新到最高版本
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom 5 升级完成之后右键点击appcompat_v7项目,选择Properties,选择Project Build Target 为最新版本,这样就OK了。error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom

相关文章:

  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
猜你喜欢
  • 2021-05-13
  • 2022-03-08
  • 2021-06-28
  • 2021-09-26
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案