Android运行时报错:In <declare-styleable> ConstraintSet
来源:互联网 发布:网络监控能监控qq吗 编辑:程序博客网 时间:2024/06/05 08:03
最近新建项目时,用的studio自动创建Activity,其自动生成根布局为android.support.constraint.ConstraintLayout,因为用着不适应,随手改成了RelativeLayout,没想到项目就这样运行不起来了,报的错是
In <declare-styleable> ConstraintSet,unable to find attribute android:elevationExecution faild for task >com.android.ide.common.process.ProcessException:Failed to execute aaptBUILD FAILED
郁闷了半天,原来是自动创建ConstraintLayout布局时,项目build.greadle里自动引入了
compile 'com.android.support.constraint:constraint-layout:1.0.2'
意思是建议根布局使用ConstraintLayout,这里有两个办法:
1、直接将根布局替换为ConstraintLayout
2、将compile引入的包直接删掉
阅读全文
1 0
- Android运行时报错:In <declare-styleable> ConstraintSet
- Android declare-styleable 详解
- Android-----declare-styleable
- 【Android】declare-styleable属性值
- Android declare-styleable自定义属性
- android declare-styleable的使用
- 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 解决办法
- 误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
- 错误:espliseappcompat_v7] ERROR: In <declare-styleable> MenuView, unable to find attribute android:pre
- 开发工具: 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
- Struts 2
- 权限管理——RBAC模型总结
- 小白入手mui的学习路线
- spark之pageRank
- list对象去重
- Android运行时报错:In <declare-styleable> ConstraintSet
- 详解Linux运维工程师打怪升级篇
- Vue学习笔记(一)
- android面试基础知识要点
- Restful API接口调试工具推荐(Postman, HTTPie)
- PHP tp5 使用,连接 postgres 问题
- 第一章 算法在计算中的作用
- ACM头文件、常用函数、宏定义
- 有了这些免费无限次的API 接口,再也不愁没有服务器开发不了APP了,也可以自己开发小程序了