Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

本文记录了一次在优快云发布博客过程中遇到的问题及解决过程,包括因图片位置错误导致的内容丢失以及后续出现的java.util.concurrent.ExecutionException错误。

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

Error:java.util.concurrent.ExecutionException

今晚被csdn深坑了一把,本身写完的三篇博文不知道为啥突然间都没了,有苦说不出啊,算了,熬夜赶博。


这是最终问题,一开始报的错误是前言中不应该有内容,当时也没想到是图片位置放错了

我当时还弄了一个drawable_aa文件,哎,手贱啊,然后几个小时后才发现。

当我改过来后,发现又报最上面的那个错误,我再次傻眼,和书上明明一样,没办法,于是找解决方案,

有让统一编码方式的,有让clean一下的,有让rebuilt project的,还有让Sync Project with Gradle Files的,但是都没用,就在快放弃时,发现了解决方案。请看下面的链接。


解决方案


非常感谢能提供您帮助。


找不到R文件Error:com.android.ide.common.process.ProcessException: Error while executing process E:\AndroidSDK\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I E:\AndroidSDK\platforms\android-26\android.jar -M \\?\E:\chapter02\FrameLayout\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S E:\chapter02\FrameLayout\app\build\intermediates\res\merged\debug -m -J \\?\E:\chapter02\FrameLayout\app\build\generated\source\r\debug -F E:\chapter02\FrameLayout\app\build\intermediates\res\debug\resources-debug.ap_ --custom-package com.example.dell.framelayout -0 apk --preferred-density xxhdpi --output-text-symbols \\?\E:\chapter02\FrameLayout\app\build\intermediates\symbols\debug --no-version-vectors} Error:Execution failed for task ':app:processDebugResources'. > Failed to execute aapt Error:org.gradle.process.internal.ExecException: Process 'command 'E:\AndroidSDK\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1 Error:(165, 31) No resource found that matches the given name (at 'layout_above' with value '@id/btn_submit'). Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process E:\AndroidSDK\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I E:\AndroidSDK\platforms\android-26\android.jar -M \\?\E:\chapter02\FrameLayout\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S E:\chapter02\FrameLayout\app\build\intermediates\res\merged\debug -m -J \\?\E:\chapter02\FrameLayout\app\build\generated\source\r\debug -F E:\chapter02\FrameLayout\app\build\intermediates\res\debug\resources-debug.ap_ --custom-package com.example.dell.framelayout -0 apk --preferred-density xxhdpi --output-text-symbols \\?\E:\chapter02\FrameLayout\app\build\intermediates\symbols\debug --no-version-vectors}
03-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值