9-patch image error in Android

前端 未结 14 1076
野性不改
野性不改 2020-12-04 12:53

Whenever I try to add a 9-patch image to the \\drawable folder in my project, I get the same error:

ERROR: 9-patch image C:\\...\\res\\drawable\         


        
14条回答
  •  臣服心动
    2020-12-04 13:32

    This is the problem with the latest ADT that is 20.0.3. You can instead rename the *.9.png to *.png and start working.

    I think this is the bug with the ADT only, since for 18.0.0 version ADT it doesn't prompt for this type of error and works fine.

提交回复
热议问题