Gradle (Android Studio) won't compile 9patches

GuiceU picture GuiceU · Jul 11, 2013 · Viewed 12.8k times · Source

I have a problem, I cannot compile this 9patch with Android Studio. It is from the Google Play Music application so it should work. I have made it an 9patch with the "draw9patch.bat" from the Androird SDK tools. But I only get this error: "Gradle: No marked region found along edge. - Found along top edge."

Any help would be estimated! Thanks in advance /Måns

Answer

ahodder picture ahodder · Jul 11, 2013

Try using the SDK tool draw9patch. That will allow you to quickly view the 9patch and add your missing sizer pixels (which the error indicates the top border sizing pixels are missing).