问题
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