简体   繁体   English

键入错误:检索项目的父项时出错:未找到与给定名称'Theme.AppCompat.Light'匹配的资源。 styles.xml Android AAPT

[英]Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml Android AAPT

I am getting error as 我收到错误消息

Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.    styles.xml  /res/values line 7  Android AAPT Problem

I have created the android app using settings in Android JUNO: 我已经使用Android JUNO中的设置创建了android应用:
Min Req SDK: API 8, Min Req SDK:API 8,
Target SDK: API 21, 目标SDK:API 21,
Compile With: API 25, 编译方式:API 25,
Theme: Holo Light with Dark Action Bar (Also tried with None), 主题:带有黑暗动作条的Holo Light(也尝试了None)
Create Activity: checked, 创建活动:选中
Create Activity: Blank Activity (Also tried Empty Activity), 创建活动:空白活动(也尝试过空活动),

I have also tried upgrading Android Support Library from Android sdk, but did not help. 我也曾尝试从Android sdk升级Android支持库,但没有帮助。
When I tried to import, AppCompat is not present anywhere. 当我尝试导入时,AppCompat不在任何地方。
Also when I tried to Add Library from Project Properties, there is no AppCompat available there. 另外,当我尝试从项目属性添加库时,那里没有可用的AppCompat。

Please help me with detailed explanation or let me know if any more details are needed. 请帮助我进行详细说明,或让我知道是否需要更多详细信息。

I have solved this one by downloading Android Studio and while installing I have selected "Do not import anything from previous installation". 我已经通过下载Android Studio解决了这一问题,并且在安装时选择了“不要从以前的安装中导入任何内容”。 There may be problem with my previous installation with Eclipse Juno. 我之前使用Eclipse Juno进行的安装可能存在问题。
I Hope this will help someone looking for an answer. 我希望这会帮助寻找答案的人。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 寻求帮助:“错误:检索项目父项时出错:找不到与给定名称'Theme.AppCompat.Light'相匹配的资源” - Asking for help: “error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light' ” 如何修复Mac版的android eclips“错误检索父项:找不到与给定名称'Theme.AppCompat.Light'相匹配的资源? - How to fix mac version of android eclips 'Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'? 从Eclipse中的源代码创建Android项目:检索项目的父项时出错:未找到与给定名称'Theme.AppCompat.Light'匹配的资源 - Create Android project from source in Eclipse: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light' 检索项目的父项时出错:找不到与给定名称“Theme.AppCompat.Light”匹配的资源。 我的R.java失踪了 - Error retrieving parent for item:No resource found that matches the given name 'Theme.AppCompat.Light'. MY R.java is missing 修复styles.xml中的错误以生成R.java:找不到资源名称'Theme.AppCompat.Light' - Fixing Error in styles.xml to generate R.java : No resource found name 'Theme.AppCompat.Light' 检索项目的父项时出错:找不到与给定名称匹配的资源'@android:style / Theme.AppCompat.Light.DarkActionBar' - Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar' Android studio错误检索项目的父项:找不到与给定名称“Theme.AppCompat.Light.DarkActionBar”匹配的资源 - Android studio Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' 找不到资源 - Styles.xml和Theme.AppCompat.Light - No resource found - Styles.xml and Theme.AppCompat.Light 错误:检索项目的父项时出错:找不到与给定名称“ Theme.AppCompat.Light.NoActionBar”匹配的资源 - error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar' Android:找不到与给定名称匹配的资源:Theme.AppCompat.Light - Android: No resource found that matches the given name :Theme.AppCompat.Light
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM