1

Recently I migrated an eclipse project to Android Studio and I am now getting following error when building project

AAPT err(Facade for 170558904): libpng error: Not a PNG file
Error:Execution failed for task ':app:mergeDebugResources'.
Some file crunching failed, see logs for details

By following various questions related to this, I renamed all .9.png to .png. It is not even showing filename which is showing error. How can I figure out which file is having that issue

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
Vivek Mishra
  • 5,669
  • 9
  • 46
  • 84

1 Answers1

1

The best solution is changue la buildDir in build.gradle:

working for me.

For example:

allprojects {
    buildDir = "C:/tmp/${rootProject.name}/${project.name}"
    repositories {
        jcenter()
    }
}

Rebuild and happy coding.

Heberth
  • 615
  • 6
  • 16