0

While importing a project I got the following error :

 AAPT err(Facade for 3882930): libpng error: Read Error

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ProjectName:mergeDebugResources'.
> Some file crunching failed, see logs for details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

I tried to clean, rebuild and also restart studio as well as my PC but no luck. Can anyone help me?

Parth Anjaria
  • 3,961
  • 3
  • 30
  • 62

1 Answers1

1

Finally i got an answer,

I took all the images an pasted them on https://tinypng.com/ and downloaded the optimized images. put them in their respective positions and Voila the error was gone.

I guess the images had corrupted as it was a 1 year old project which i was trying to import.

Parth Anjaria
  • 3,961
  • 3
  • 30
  • 62