Android Package Error: AAPT: error: IDAT: incorrect data check. AAPT: error: file failed to compile.

Android packaging error
AAPT: error: Idat: incorrect data check.
AAPT: error: file failed to compile. Solution:
add the following code to the app/build.gradle file

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false


Read More: