背景:
AndroidStudio 3.2.4
AS Build 失败,提示:
解决过程:
1、【失败】用关键字Execution failed for task ':processReleaseResources'.
> Android resource linking failed 度了许久,大部分说是编译版本的配置有误。
修改均无效,度久未见良方。
2、【成功】用关键字AAPT: error: attribute layout_constraintLeft_toLeftOf度了一下,找到解决办法:Android Studio编译提示如下attribute layout_constraintBottom_toBottomOf (aka com.luck.pictureselector:layou_chenyu-优快云博客
总结下,就是attribute layout_constraintLeft_toLeftOf报错,需要单独引入constraintlayout库。
(估计是AS版本低了,本来还认为这种自带UI的不应用出现找不到的情况呢)
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
Android Studio编译失败解决方案:约束布局库缺失问题
在Android Studio 3.2.4版本中遇到编译失败的问题,错误信息涉及Execution failed for task ':processReleaseResources'和attributelayout_constraintLeft_toLeftOf。尝试多种修改配置的方法无效。最终发现是由于缺少对constraintlayout库的引用导致的。通过添加implementation 'androidx.constraintlayout:constraintlayout:1.1.2'到build.gradle文件,成功解决了问题。这表明可能是由于AS版本较低,某些内置UI依赖的库没有自动引入。
1万+

被折叠的 条评论
为什么被折叠?



