Whenever I try to add a 9-patch image to the \\drawable folder in my project, I get the same error:
\\drawable
ERROR: 9-patch image C:\\...\\res\\drawable\
I have resolved it by changing the stretch scope in Android Studio.