Android Studio Execution failed for task ‘:app:mergeDebugResources’. and Failed to build some directory

  android, android-studio, gradle, javascript

At first install running a program all is normal. And then it’s happened since I add a splash screen in there. I’ve reinstalled the application but nothing was changed. First run normal and the second run is failed again. I try to check my gradle and the file, but no one problem that found in there.

How I can fix this problem?

Execution failed for task ‘:app:mergeDebugResources’.

Could not resolve all files for configuration ‘:app:_internal_aapt2_binary’.
Failed to transform aapt2-4.1.2-6503028-windows.jar (com.android.tools.build:aapt2:4.1.2-6503028) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for Aapt2Extractor: C:UsersASUS.gradlecachesmodules-2files-2.1com.android.tools.buildaapt2.1.2-6503028d9042942daa27a40e3ff66254cb2a82a7f0b69faapt2-4.1.2-6503028-windows.jar.
> Failed to create directory ‘C:UsersASUS.gradlecachestransforms-2files-2.1{$content}acdb043263d98cb86ad08d6f4b1bd1aaapt2-4.1.2-6503028-windows’

Source: Ask Javascript Questions

LEAVE A COMMENT