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

查看:113
本文介绍了java - 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"

这篇关于java - eclipse中res旁边有个红叉怎么解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆