Flutter项目在使用图片资源时,出现下图错误的解决方法:
error: resource mipmap/ic_launcher.png (aka com.example.sldtan:mipmap/ic_launcher.png) not found

  1. 检查该图片资源是否在drawble文件夹和mipmap所有的文件夹中配置了对应的图片,若没有,需要进行配置

  2. 检查在使用图片资源是否带有后缀名,若有,就删除后缀名
    error: resource mipmap/ic_launcher.png (aka com.example.sldtan:mipmap/ic_launcher.png) not found

  3. 检查图片资源文件名是否写错

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-10-12
  • 2022-12-23
  • 2021-10-24
猜你喜欢
  • 2021-05-24
  • 2021-11-16
  • 2021-04-04
  • 2021-06-25
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案