android studio创建9.patch图片,使用时出现Error: Duplicate resources

笔者运行环境:MacOs Catalina , android studio 3.6.3
android studio创建9.patch图片,使用时出现`Error: Duplicate resources`
1.这个错误表示文件重复。在创建9.patch图片时,自动生成的文件名和原来的名字一样,只是后缀变成了.9.png
如果出现错误Error:Duplicate resources,将“XXX.9.png”改成其他任意不重复的名字即可,如“aaaaaa.9.png”。
android studio创建9.patch图片,使用时出现`Error: Duplicate resources`

2.引用“aaaaaaa.9.png”时报错。引用时无需加“.9”android studio创建9.patch图片,使用时出现`Error: Duplicate resources`
以上均为个人实操,不具专业性,不足之处敬请批评指正。

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2021-12-22
  • 2021-07-03
  • 2021-07-24
  • 2021-09-25
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-09-02
  • 2021-07-25
  • 2021-12-10
相关资源
相似解决方案