Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:processDebugResources'.
 java.io.IOException: Could not delete folder ..\android\app\build\generated\source\r\debug\com\facebook\drawee

the error message

Did anyone experienced something like that or has a solution?

like image 517
codeodeveloper Avatar asked Feb 02 '16 16:02

codeodeveloper


People also ask

What is execution failed for task processdebugresources React Native error in Android?

This error comes because of build failure and the react native apk builder were unable to generate the sample apk file for Simulator. So in this tutorial we would going to solve the Execution failed for task processDebugResources react native error in Android.

How to run react native app on Android device?

Running your app on Android devices 1 Enable Debugging over USB Most Android devices can only install and run apps downloaded from Google Play, by default. ... 2 Plug in your device via USB Let's now set up an Android device to run our React Native projects. ... 3 Run your app

How to run an app on an Android device?

Running your app on Android devices. 1 1. Enable Debugging over USB. Most Android devices can only install and run apps downloaded from Google Play, by default. You will need to enable USB ... 2 2. Plug in your device via USB. 3 3. Run your app.

What to do if Android SDK is not installed?

If the android SDK corresponding to the buildToolsVersion used in the app is not installed, make sure to change the buildToolsVersion to the latest Android SDK Build Tools version already installed. Step 2: Navigate to SDK Tools & click “Show Package Details” and look for the latest version of the Android SDK Build Tools Version installed.


2 Answers

Run this command to clean project:

cd android && gradlew clean

After, run the following command to run project again:

cd .. && react-native run-android
like image 188
nguyencse Avatar answered Oct 05 '22 23:10

nguyencse


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!

like image 23
JohanR Avatar answered Oct 05 '22 23:10

JohanR