同様のエラーが発生して色々した海外の書き込みを参考まで。
Execution failed for task 'app:mergeDebugResources' Crunching
エラーを起こしているのが’mergeDebugResources’で、これがエラーを起こす条件を考えてみる。
1.’The filepath is also not too long and everytime unter 256 signs, that also not the problem :’
ファイルパスとファイル名の全体で256文字を超えている。
対応法:パスが短くなる位置に移動してみる。
’e.g. I moved project from:
D:/Android/Apps/AndroidStudioProject/AppName
to
D:/AppName’
2.もし映像で’.jpg’の拡張子なら'.png'に変更してみる。
1>Mismatch of Resources
2>Missing attributes, wrong tags, etc in Resources
3>Issue in Styles
4>Missing name in Styles
5>Duplicacy of Resources/Libraries
6>Sometimes it can be even solved by changing the compatible library in build.gradle
7>Executing aapt command
8>Renaming the extension from .jpg to .png
9>Simply with the help of Clean Project
10>Even in some cases,restarting android studio can solve the problem.
かも。。