Android运行时报错:In <declare-styleable> ConstraintSet
2017-07-25 14:45
239 查看
最近新建项目时,用的studio自动创建Activity,其自动生成根布局为android.support.constraint.ConstraintLayout,因为用着不适应,随手改成了RelativeLayout,没想到项目就这样运行不起来了,报的错是
郁闷了半天,原来是自动创建ConstraintLayout布局时,项目build.greadle里自动引入了
意思是建议根布局使用ConstraintLayout,这里有两个办法:
1、直接将根布局替换为ConstraintLayout
2、将compile引入的包直接删掉
In <declare-styleable> ConstraintSet,unable to find attribute android:elevation Execution faild for task >com.android.ide.common.process.ProcessException:Failed to execute aapt BUILD FAILED
郁闷了半天,原来是自动创建ConstraintLayout布局时,项目build.greadle里自动引入了
compile 'com.android.support.constraint:constraint-layout:1.0.2'
意思是建议根布局使用ConstraintLayout,这里有两个办法:
1、直接将根布局替换为ConstraintLayout
2、将compile引入的包直接删掉
相关文章推荐
- Android运行时报错:In <declare-styleable> ConstraintSet
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- ERROR: In <declare-styleable> MenuView, unable to
- 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中出现Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:font 解决办法
- Android In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- Android 开发过程中遇到了一个问题 小记录一下 ERROR: In <declare-styleable> BorderLinearLayout, unable to find attribu
- ERROR: In <declare-styleable> MenuView, unable to
- 误ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
- Android出现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
- BUG:eclipse中添加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