why i get Some file crunching failed after i rename drawable file to .9.png?

后端 未结 9 986
盖世英雄少女心
盖世英雄少女心 2021-02-07 07:40

I am testing 9-patch image .
Before everything works fine , and i rename drawable file ic_button_beat_box_default.png to ic_button_beat_box_d

9条回答
  •  醉话见心
    2021-02-07 08:24

    Rename your file again

    ic_button_beat_box_default.9.png to ic_button_beat_box_default9.png because android studio takes ic_button_beat_box_default.9 instead of ic_button_beat_box_default.9.png

    or another solution is add below line to your build.gradle(Module:app)

    android{
     aaptOptions {cruncherEnabled = false} 
    }
    

提交回复
热议问题