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
Did anyone experienced something like that or has a solution?
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.
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
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.
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.
Run this command to clean project:
cd android && gradlew clean
After, run the following command to run project again:
cd .. && react-native run-android
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With