Skip to content Skip to sidebar Skip to footer

React-native Run-android Fail On :app:processdebugresources

I recently added push notification to my app using react-native and since at seemingly random times I get messages such as in the added photo Execution failed for task ':app:proce

Solution 1:

Run this command to clean project:

cd android && gradlew clean

After, run the following command to run project again:

cd .. && react-native run-android

Solution 2:

I had the same problem. I changed the permissions of the project folder and all subfolders to full access from all users, and now it seems to work!

Solution 3:

So apparently the packager can cause two types of file-access errors to occur during gradle syncing and building:

1) "EPERM: operation not permitted, lstat"

2) "java.io.IOException: Could not delete path"

These are actually two separate problems -- one of them caused by the watchman npm module, and the other caused by the packager itself.

Instructions to solve them can be found here: https://stackoverflow.com/a/47420765/2441655

Solution 4:

If you are running the application in android device then go to the android director in your react native project then Delete the build folder/(Directory) then again run the project.Its work for me

The path of the build folder

YourProject/android/

Post a Comment for "React-native Run-android Fail On :app:processdebugresources"