N Kaushik

Fix- intermediates/compiled_local_resources/debug/out' is not a readable directory

May 05, 2022

Fix- intermediates/compiled_local_resources/debug/out’ is not a readable directory on Android, React Native and Flutter projects:

You might face this error in Android, React native or Flutter project. This error looks something like below:

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Path
'/Users/...{package name}/intermediates/compiled_local_resources/debug/out' is not a readable directory.

Here, package name can be any package name. It can be any of the third-party libraries you are using in the project. This is not an issue of the library though.

Steps to reproduce this issue:

This issue was occurring while building a release build of the application. You can go to the android project folder and use ./gradlew assembleRelease to create the release build.


The solution of this issue is simple. You need to delete the .gradle folder in the root of the project. Note that this folder is in the root of the android project. For example, if you are using react native, you will find it under your_project/mobile/android.

After deleting the folder, try to rebuild the project. It should work.

Additional steps:

If the above step doesn’t work, you can try the below steps:

  • Delete the .gradle folder and restart your system before you try again.
  • Invalidate-cache/Restart Android Studio
  • Clean the project ./gradlew clean

It should work.

Subscribe to my Newsletter