Invalid color in Android Compilation. How to fix .9.png

橙三吉。 提交于 2019-12-24 10:37:28

问题


I'm getting the following error when compiling in Android Studio

Android resource compilation failed
Output:  error: found an invalid color.

The image that is causing the error is already a .9.png file and it looks like this in Android Studio

I am not sure how to solve this. I referred to this two questions

How can I track down the cause of Android "found an invalid color" error

Android : 9-Patch image Error

and both indicate that the border around the image should be transparent. I'm guessing I have to fix the "bad patches" shown in red. if that's the case how can I fix them and make the compilation succeed?

来源:https://stackoverflow.com/questions/53559270/invalid-color-in-android-compilation-how-to-fix-9-png

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!