Android : 9-Patch 图片错误 [英] Android : 9-Patch image Error
本文介绍了Android : 9-Patch 图片错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从 git 导入了这个键盘 app 一切正常,但我在构建时遇到此错误项目
i imported this keyboard app from git everything is working fine but i am getting this error while building project
Error:top-left corner pixel must be either opaque white or transparent.
Error:found an invalid color.
Error:top-left corner pixel must be either opaque white or transparent.
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for detail
谁能告诉我有什么问题吗
can anyone tell me what is the problem please
推荐答案
此错误是由不正确/损坏的 9 补丁文件引起的.它们应该有透明或不透明的白色边框,但你的似乎没有.尝试按照以下步骤操作:https://developer.android.com/studio/write/draw9patch.html
This error is caused by an incorrect/corrupted 9-patch file. They should have a transparent or opaque white border, but yours doesn't seem to have it. Try following the steps in this: https://developer.android.com/studio/write/draw9patch.html
这篇关于Android : 9-Patch 图片错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文