:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 16s
在从别的项目拷贝代码进行移植功能时,最后出现上面这个错误,我反复检查了res目录里的文件,最后确定没有缺少资源,然后百度半天也没有实质性的进展,无奈只能靠自己,查看报错信息如下:
发现有cardBackgroundColor,cardCornerRadius,cardElevation三个属性没有在包里面,我全局搜索确实没有找到。最后想到
这应该与cardview有关,然后我发现在app下的build.gradle文件中没有导入卡片布局cardview相应的依赖包。然后我导入相应的
依赖包 compile '