问题描述
- 新建android工程HellowWorld小程序报错
-
[2015-06-21 09:40:53 - HellowWord] F:eclipse 32workspaceHellowWordresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:40:53 - HellowWord]
[2015-06-21 09:40:53 - HellowWord] F:eclipse 32workspaceHellowWordresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:40:53 - HellowWord]
[2015-06-21 09:40:53 - HellowWord] F:eclipse 32workspaceHellowWordresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 09:40:53 - HellowWord]
[2015-06-21 09:40:55 - HellowWord] F:eclipse 32workspaceHellowWordresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:40:55 - HellowWord]
[2015-06-21 09:40:55 - HellowWord] F:eclipse 32workspaceHellowWordresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:40:55 - HellowWord]
[2015-06-21 09:40:55 - HellowWord] F:eclipse 32workspaceHellowWordresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 09:40:55 - HellowWord]
[2015-06-21 09:41:00 - HellowWord] F:eclipse 32workspaceHellowWordresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:41:00 - HellowWord]
[2015-06-21 09:41:00 - HellowWord] F:eclipse 32workspaceHellowWordresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:41:00 - HellowWord]
[2015-06-21 09:41:00 - HellowWord] F:eclipse 32workspaceHellowWordresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 09:41:00 - HellowWord]
[2015-06-21 09:54:11 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:54:11 - HellowAndroid]
[2015-06-21 09:54:11 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:54:11 - HellowAndroid]
[2015-06-21 09:54:11 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 09:54:11 - HellowAndroid]
[2015-06-21 09:54:13 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:54:13 - HellowAndroid]
[2015-06-21 09:54:13 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:54:13 - HellowAndroid]
[2015-06-21 09:54:13 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 09:54:13 - HellowAndroid]
[2015-06-21 09:54:14 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:54:14 - HellowAndroid]
[2015-06-21 09:54:14 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 09:54:14 - HellowAndroid]
[2015-06-21 09:54:14 - HellowAndroid] F:eclipse 32workspaceHellowAndroidresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 09:54:14 - HellowAndroid]
[2015-06-21 10:11:03 - HellowWorld] F:eclipse 32workspaceHellowWorldresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:11:03 - HellowWorld]
[2015-06-21 10:11:03 - HellowWorld] F:eclipse 32workspaceHellowWorldresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:11:03 - HellowWorld]
[2015-06-21 10:11:03 - HellowWorld] F:eclipse 32workspaceHellowWorldresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 10:11:03 - HellowWorld]
[2015-06-21 10:11:04 - HellowWorld] F:eclipse 32workspaceHellowWorldresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:11:04 - HellowWorld]
[2015-06-21 10:11:04 - HellowWorld] F:eclipse 32workspaceHellowWorldresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:11:04 - HellowWorld]
[2015-06-21 10:11:04 - HellowWorld] F:eclipse 32workspaceHellowWorldresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 10:11:04 - HellowWorld]
[2015-06-21 10:11:05 - HellowWorld] F:eclipse 32workspaceHellowWorldresvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:11:05 - HellowWorld]
[2015-06-21 10:11:05 - HellowWorld] F:eclipse 32workspaceHellowWorldresvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:11:05 - HellowWorld]
[2015-06-21 10:11:05 - HellowWorld] F:eclipse 32workspaceHellowWorldresvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 10:11:05 - HellowWorld]
[2015-06-21 10:46:52 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:46:52 - HellowWorld1]
[2015-06-21 10:46:52 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:46:52 - HellowWorld1]
[2015-06-21 10:46:52 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 10:46:52 - HellowWorld1]
[2015-06-21 10:46:54 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:46:54 - HellowWorld1]
[2015-06-21 10:46:54 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:46:54 - HellowWorld1]
[2015-06-21 10:46:54 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 10:46:54 - HellowWorld1]
[2015-06-21 10:47:05 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvaluesstyles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:47:05 - HellowWorld1]
[2015-06-21 10:47:05 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-06-21 10:47:05 - HellowWorld1]
[2015-06-21 10:47:05 - HellowWorld1] F:eclipse 32workspaceHellowWorld1resvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-06-21 10:47:05 - HellowWorld1]
解决方案
新建项目时换一个sdk的版本就可以了,最好18以上
解决方案二:
可能的原因是要不sdk没有这个style或者是这个style被设置为不公开的了。
对于非public的xml属性,可以在“@”后加个"*"解决,如下:
<item name="android:windowTitleStyle">@*android:style/Widget.TextView.ListSeparator.White</item>
或者有一个比较笨的方法,就是把源码里的那个style复制过来放到自己的xml里然后引用。
解决方案三:
能通俗点吗 ? 或者远程帮我一下可以不
解决方案四:
Theme.AppCompat.Light 这个东西是V7包里面才有的样式,你换一个@android:style/Theme.Light.NoTitleBar这个,或者把suppor-v7-appCompat引入进去
解决方案五:
Theme.AppCompat.Light 这个东西是V7包里面才有的样式,你换一个@android:style/Theme.Light.NoTitleBar这个,或者把suppor-v7-appCompat引入进去
解决方案六:
引入extrasandroidsupportv7appcompat这个项目
解决方案七:
android sdk没有安装好,包内容不完整
时间: 2024-10-31 08:42:12