Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

app:mergeReleaseResources exception when making release build

I am able to create debug build but release build fails with app:mergeReleaseResources and Error: java.util.concurrent.ExecutionException: exception. I have tried setting progaurd off, remove any corrupted png file but still same issue is coming. Any idea what is going wrong here or how to find the reason?

like image 640
jatin rana Avatar asked Aug 30 '25 17:08

jatin rana


1 Answers

Solved this by using this command gradlew --scan assembleRelease in terminal and it it gave me following error : D:\Freelance Work\InstaConnect\app\src\main\res\drawable-nodpi\blacktoblue_gradient.png: error: failed to read PNG signature: file does not start wi th PNG signature.

Once i corrected that file , it worked.

like image 122
jatin rana Avatar answered Sep 02 '25 06:09

jatin rana