libpng error: Not a PNG file Error Showing In Android Studio

后端 未结 8 2132
悲哀的现实
悲哀的现实 2020-11-27 05:20

I just Imported a project from Eclipe to Android Studio. Just a plain and simple project. But the project folder is showing one error .

May I know what

8条回答
  •  无人及你
    2020-11-27 05:45

    Try run command

    find . -type f -name "*.png" | xargs -L 1 -I{} file  -I {} | grep -v 'image/png; charset=binary$'
    

    in your root project directory, it will show you all files that have .png extension, but are not pngs. Then you can resave them as png in some image editor. Before running this command clean project, to speed up the process.

提交回复
热议问题