首页 > eclipse中res旁边有个红叉怎么解决?

eclipse中res旁边有个红叉怎么解决?

还有这个错误怎么解决

[2016-07-23 18:54:55 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 18:54:55 - helloandroid] 
[2016-07-23 18:54:55 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 18:54:55 - helloandroid] 
[2016-07-23 18:54:55 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 18:54:55 - helloandroid] 
[2016-07-23 19:02:34 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:02:34 - helloandroid] 
[2016-07-23 19:02:34 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:02:34 - helloandroid] 
[2016-07-23 19:02:34 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:02:34 - helloandroid] 
[2016-07-23 19:14:22 - android-support-v7-appcompat] Unable to resolve target 'android-20'
[2016-07-23 19:14:22 - android-support-v7-appcompat] Unable to resolve target 'android-20'
[2016-07-23 19:14:22 - android-support-v7-appcompat] Unable to resolve target 'android-20'
[2016-07-23 19:15:06 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:06 - helloandroid] 
[2016-07-23 19:15:06 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:06 - helloandroid] 
[2016-07-23 19:15:06 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:15:06 - helloandroid] 
[2016-07-23 19:15:09 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:09 - helloandroid] 
[2016-07-23 19:15:09 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:09 - helloandroid] 
[2016-07-23 19:15:09 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:15:09 - helloandroid] 
[2016-07-23 19:15:41 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:41 - helloandroid] 
[2016-07-23 19:15:41 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:41 - helloandroid] 
[2016-07-23 19:15:41 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:15:41 - helloandroid] 
[2016-07-23 19:15:41 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:41 - helloandroid] 
[2016-07-23 19:15:41 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:41 - helloandroid] 
[2016-07-23 19:15:41 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:15:41 - helloandroid] 
[2016-07-23 19:15:51 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:51 - helloandroid] 
[2016-07-23 19:15:51 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:51 - helloandroid] 
[2016-07-23 19:15:51 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:15:51 - helloandroid] 
[2016-07-23 19:15:52 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:52 - helloandroid] 
[2016-07-23 19:15:52 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:15:52 - helloandroid] 
[2016-07-23 19:15:52 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:15:52 - helloandroid] 
[2016-07-23 19:17:57 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:17:57 - helloandroid] 
[2016-07-23 19:17:57 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:17:57 - helloandroid] 
[2016-07-23 19:17:57 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:17:57 - helloandroid] 
[2016-07-23 19:18:14 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:18:14 - helloandroid] 
[2016-07-23 19:18:14 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:18:14 - helloandroid] 
[2016-07-23 19:18:14 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:18:14 - helloandroid] 
[2016-07-23 19:22:09 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:22:09 - helloandroid] 
[2016-07-23 19:22:09 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:22:09 - helloandroid] 
[2016-07-23 19:22:09 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:22:09 - helloandroid] 
[2016-07-23 19:22:18 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:22:18 - helloandroid] 
[2016-07-23 19:22:18 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:22:18 - helloandroid] 
[2016-07-23 19:22:18 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:22:18 - helloandroid] 
[2016-07-23 19:33:32 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:33:32 - helloandroid] 
[2016-07-23 19:33:32 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:33:32 - helloandroid] 
[2016-07-23 19:33:32 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:33:32 - helloandroid] 
[2016-07-23 19:33:32 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:33:32 - helloandroid] 
[2016-07-23 19:33:32 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:33:32 - helloandroid] 
[2016-07-23 19:33:32 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:33:32 - helloandroid] 
[2016-07-23 19:33:56 - helloandroid] Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please use Android Tools > Fix Project Properties.
[2016-07-23 19:33:56 - helloandroid] Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please use Android Tools > Fix Project Properties.
[2016-07-23 19:34:15 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:34:15 - helloandroid] 
[2016-07-23 19:34:15 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:34:15 - helloandroid] 
[2016-07-23 19:34:15 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:34:15 - helloandroid] 
[2016-07-23 19:34:16 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:34:16 - helloandroid] 
[2016-07-23 19:34:16 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:34:16 - helloandroid] 
[2016-07-23 19:34:16 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:34:16 - helloandroid] 
[2016-07-23 19:37:02 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:37:02 - helloandroid] 
[2016-07-23 19:37:02 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:37:02 - helloandroid] 
[2016-07-23 19:37:02 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:37:02 - helloandroid] 
[2016-07-23 19:38:13 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:38:13 - helloandroid] 
[2016-07-23 19:38:13 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:38:13 - helloandroid] 
[2016-07-23 19:38:13 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:38:13 - helloandroid] 
[2016-07-23 19:43:40 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:43:40 - helloandroid] 
[2016-07-23 19:43:40 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:43:40 - helloandroid] 
[2016-07-23 19:43:40 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:43:40 - helloandroid] 
[2016-07-23 19:43:49 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:43:49 - helloandroid] 
[2016-07-23 19:43:49 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:43:49 - helloandroid] 
[2016-07-23 19:43:49 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:43:49 - helloandroid] 
[2016-07-23 19:48:14 - helloandroid] G:\eclipse\helloandroid\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:48:14 - helloandroid] 
[2016-07-23 19:48:14 - helloandroid] G:\eclipse\helloandroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-23 19:48:14 - helloandroid] 
[2016-07-23 19:48:14 - helloandroid] G:\eclipse\helloandroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-23 19:48:14 - helloandroid] 

错误信息不是已经说了吗? 你在styles.xml这个文件里面使用了Theme.AppCompat.Light这个主题,但是你的项目没有定义或者引入这个主题

AndroidManifest.xml文件里面添加android:theme="@style/Theme.AppCompat.Light"


要学会看错误信息啦
你给出的报错信息的第一行就是最主要原因

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

Theme.AppCompat.Light这个主题没有资源

【热门文章】
【热门文章】