Error:Execution failed for task':app:process DebugResources';

在Android开发过程中遇到'Execution failed for task ':app:processDebugResources''错误,可能是因为compileSdkVersion和buildToolsVersion设置不当,或是依赖的Module中build.gradle文件的dependencies部分问题。解决方法包括检查并调整这两个版本,以及考虑注释或修改dependencies中的编译依赖。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:   ror:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\AppData\A\build-tools\24.0.0\aapt.exe'' finished with non-zero exit value 1

> Project with path ':sTLivenessLibrary' could not be found in project ':app'.

Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

一:

 右键工程选择 ——Open Module Settings ——Properties

    检查下:compileSdkVersion                 

                     buildToolsVersion 

    两个属性:看下版本是否过高或者过低

二:

     看下  build.gradle 文件。 注意是你所依赖的Module 里的build.gradle文件里的

                 dependencies{

                       compile fileTree(include:[“*。jar”],dir:‘libs’             //注释掉这行,重新clean  run一下。当然这个要根据你依赖的module具体情况用途来确定。

                         }                               

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值