[英]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.