异常错误信息
AGPBI: {"kind":"error","text":"Android resource compilation failed","sources":[{"file":"E:\\AndroidStudio\\2023\\04\\UIBestPractice\\app\\src\\main\\res\\drawable-xhdpi\\message_right.9.png"}],"original":"ERROR: E:\\UIBestPractice\\app\\src\\main\\res\\drawable-xhdpi\\message_right.9.png: AAPT: error: file failed to compile.\n ","tool":"AAPT"}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR: E:UIBestPractice\app\src\main\res\drawable-xhdpi\message_right.9.png: AAPT: error: file failed to compile.
错误提示message_right.9.png图片在Android Studio 编译检测过程中不通过。
解决(仅供参考)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/a198a1e880d2c6f99767fcb8958dea0b.png)
上图右侧的黑线没有闭合,将它闭合,就可以编译通过了,
如下图所示。
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/76707009805e625c9125045d8ef633c3.png)