java - eclipse中res旁边有个红叉怎么解决?
PHP中文网
PHP中文网 2017-04-18 09:35:51
[Java讨论组]

还有这个错误怎么解决

[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] 
PHP中文网
PHP中文网

认证0级讲师

全部回复(2)
PHP中文网

错误信息不是已经说了吗? 你在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这个主题没有资源

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号