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

本文详细介绍了.9PNG图片的概念及其在Android平台上的独特优势,包括自适应调节大小、定义可扩展区域及内容显示区等特点,并探讨了其在实际开发中的使用技巧。

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

在运行是出现以下问题:



再继续往下看,发现更详细的错误,其中插入的图片必须为png图片。


事实证明在显示后缀名的计算机上保存jpg图片是强行把图片后缀改变为.png是没有用的。。我想到的办法只有去QQ截图另存为。。



在之前也出现过类似的错误,但是.9问题,

之前百度发现其他人都在提.9错误,对于安卓小白来说这种表达方式我并不能理解。在查资料之后大概了解了.9png图片的概念:

 一、什么是.9文件?
1、9.png格式的图片是Android平台上新创的一种被拉伸却不失真的东西。

 2、与传统的png 格式图片相比, 9.png 格式图片在图片四周有一圈一个像素点组成的边沿,该边沿用于对图片的可扩展区和内容显示区逆行定义。

二、.9文件的特点是什么?
1. .9格式的图片在android环境下具有自适应调节大小的能力。
2. .9格式的图片允许开发人员定义可扩展区域,当需要延伸图片以填充比图片本身更大区域时,可扩展区的内容被延展。
3. .9格式的图片允许开发人员定义内容显示区,用于显示文字戒其他内容
4..9格式的图片占用资源很小,一般一个几KB或者几十KB的图片会变成几百个字节,有利于节省流量和提高加载速度。 

找不到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、付费专栏及课程。

余额充值