com.android.build.gradle.internal.tasks.Workers$ActionFacade Build Error

Paul Patterson
May 26, 2021

If you run into the below error when trying to run your React-Native Android build, many online resources recommend:

  • Clearing the Java JDK processes on windows
  • the ol’ deleting and reinstalling node_modules
  • deleting the /android/build folder
  • Invalidating build and caches in Android Studio

None fo this worked unfortunately.

Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> File 'com.android.builder.files.ZipCentralDirectory@148b205c' was deleted, but previous version not found in cache

The solution was to go into the /Android folder and run ./gradlew clean.

Once successful, I was able to build the app again. Great success.

--

--