Android 运行时错误 ConstraintSet, unable to find attribute android:elevation
来源:互联网 发布:logstash apache日志 编辑:程序博客网 时间:2024/06/05 21:05
刚才在修改项目时新建了Activity,其自动生成的布局文件的根布局为Android.support.constraint.ConstraintLayout,在项目里用不到就直接删除了,更改为LinearLayout,结果运行报错
以上错误第一次遇到根据错误的查找了半天,结果打开Build.greadle文件一看,原来是引用了
compile 'com.android.support.constraint:constraint-layout:1.0.2'
如果项目中没有使用ConstraintLayout布局,还引入了以上包,就会报错。
解决办法:
如果不使用ConstraintLayout布局,就直接将conmpile引入的包直接删掉就OK了
阅读全文
0 0
- Android 运行时错误 ConstraintSet, unable to find attribute android:elevation
- 错误:espliseappcompat_v7] ERROR: In <declare-styleable> MenuView, unable to find attribute android:pre
- Android运行时错误:Unable to find explicit activity,have you declared this activity in AndroidManifest.xml
- Android In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- Android出现In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing错误信息
- Android中出现Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:font 解决办法
- Genymotion 运行Android虚拟机出现错误:Unable to staart the virtual device.To find out the cause of the problem
- Android错误:unable to find explicit activity class
- 误ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing异常解决
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- 开发工具: ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- Android Studio 使用kotlin建立第一个KotlinActivity配置
- 重建二叉树
- centos安装
- java 对 mongo 接口实现 3.0版本以上
- 四分位数 箱线图
- Android 运行时错误 ConstraintSet, unable to find attribute android:elevation
- swift定时器(Timer)的使用
- LeetCode
- python-001 第一个Python3.x程序 hello world
- Java性能调优工具(一) Linux命令行工具(top sar vmstat iostat)
- php数组函数整理
- Spring4和Hibernate5整合
- ORACLE触发器学习
- 红外编解码解析