Android:9补丁图片错误 [英] Android : 9-Patch image Error

查看:99
本文介绍了Android:9补丁图片错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从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补丁图片错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆