SDK降版本导致编译失败Error retrieving parent for item: No resource found that matches the given name
来源:互联网 发布:遥望网络 编辑:程序博客网 时间:2024/05/17 21:39
SDK降版本导致编译失败:
Error retrieving parent for item: No resource found that matches the given name
新装了Android的开发环境,新建工程后发现一个问题:
降低SDK版本后编译有问题,这里说一下Android项目降SDK版本的问题
1,Android Studio新建一个项目,查看项目属性:
2,将项目SDK降低到API 19 Android 4.4
Compile Sdk Version 设置为 19:Android 4.4(KitKat)Build Tools Version 设置为 19.1.0
修改后项目编译报错:
解决方法:
这是由于新建项目的版本较高,依赖了appcompat-v7
所以拿掉这个依赖(API19的时候还没有这个依赖)
重新编译后继续报错,但刚刚的错误已经不存在了
继续改,道理一样,API19那时候还没有这个style,只能改为API19那个年代的style:android:Theme.Light
编译后,继续报错:
我们先删除这个属性,继续编译,报错位置变了,不再是style和资源文件了,改为Activity
新建项目的首页继承的是v7包下的ActionBarActivity,我们换成android.app.Activity
编译后不再报错,项目正常运行:
0 0
- SDK降版本导致编译失败Error retrieving parent for item: No resource found that matches the given name
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCo
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Them
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'AppCompat'
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'android:
- error: Error retrieving parent for item: No resource found that matches the given name 解决方法1
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Win
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.App
- error: Error retrieving parent for item: No resource found that matches the given name 解决办法
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- 530 Error: A secure connection is requiered(such as ssl). More information at http://service.mail.qq
- 基于Redis的在线用户列表解决方案
- openCV Mat各属性简介(step1)
- 【转载】C++学习----------vector
- 数据结构实验之链表九:双向链表
- SDK降版本导致编译失败Error retrieving parent for item: No resource found that matches the given name
- Neutron Vlan Network 原理- 每天5分钟玩转 OpenStack(92)
- 母亲离开五周年
- cordova 中怎么加入引导页
- union: 一种节省空间的类
- MySQL 查看数据表结构以及详情的方法
- 基于Struts的文件下载
- shell编程小实例
- iOS CocoaPods安装 导入 使用