[Solved] Execution failed for task ‘:app:mergeDebugResources’

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

Solution:
apply plugin: ‘com.android.application’

android {
compileSdkVersion 22
buildToolsVersion “23.0.1”
aaptOptions {
cruncherEnabled = false
}
defaultConfig {
applicationId “net.sourceforge.simcpux”
minSdkVersion 4
targetSdkVersion 4
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’
}
}
}

dependencies {
compile files(‘libs/libammsdk.jar’)
}

Similar Posts: