我已经按照几个网站上的指南进行操作,但我无法让它工作。我确保他们是从现有的源创建项目,并在项目中包含库,检查目标等。我不确定我缺少什么。
我收到以下错误:
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values\styles.xml:246: error: Error: No resource found that matches the given name: attr 'windowActionBar'.
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values\styles.xml:247: error: Error: No resource found that matches the given name: attr 'windowNoTitle'.
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values-v14\styles.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock'.
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values-v14\styles.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light'.
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values-v14\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light.DarkActionBar'.
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values-v14\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.ForceOverflow'.
[2012-08-29 21:04:45 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values-v14\styles.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light.ForceOverflow'.
[2012-08-29 21:46:56 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values\styles.xml:247: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.HoloEverywhereDark.Sherlock'.
[2012-08-29 21:46:56 - IT Guru] C:\Workspace\HoloEverywhereLib\res\values\styles.xml:253: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.HoloEverywhereLight.Sherlock'.
指南跟随:
答案 0 :(得分:3)
您链接到的HoloEverywhere指南有点过时,现在称这两个主题为Holo.Theme
和Holo.Theme.Light
。
所以在Android清单中更改这些行:
android:theme="@style/Theme.HoloEverywhereDark.Sherlock"
或
android:theme="@style/Theme.HoloEverywhereLight.Sherlock"
到
android:theme="@style/Holo.Theme"
或
android:theme="@style/Holo.Theme.Light"
然后Project->清理并查看错误是否消失。
答案 1 :(得分:0)
当您使用Sherlock主题(未集成Android主题)时,您需要在ProjectName /文件夹下导入该附加包
+项目名
答案 2 :(得分:0)
我通过将所有项目的android目标设置为最新的Android版本(v.17 atm)来解决问题