Bomber
Bomber

Reputation: 10947

React native error, Execution failed for task ':app:processDebugResources'

Any ideas what this error means?

When I try and run, npm run playground-android, I get the error.

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugResources'. java.io.IOException: Could not delete path 'C:\sites\ReactMatt\lower-your-drinking\android\app\build\generated\source\r\debug\org\webkit'.

Any ideas?

Upvotes: 4

Views: 21444

Answers (6)

bilalkarakollu
bilalkarakollu

Reputation: 1

In your project,

  1. Navigate to android => cd android
  2. Then, run this command => ./gradlew clean
  3. Then, open your project's Android kloser from Android Studio and Build Gradle enter image description here

enter image description here

Upvotes: -1

Lahiru Amarathunge
Lahiru Amarathunge

Reputation: 809

This works for me!

1) Navigate to android  :  cd android
2) Then run this command:  ./gradlew clean

Upvotes: 0

03balogun
03balogun

Reputation: 380

I one had similar issues. Below is how I fixed it.

cd android //Navigate into the android folder from the root directory
./gradlew clean // Run this

I hope it helps

Upvotes: 16

Lawal
Lawal

Reputation: 338

I had this same problem but gradlew clean did not resolve issue until I removed the android and ios folders from my project and then used these commands;

  • react-native eject
  • react-native link
  • react-native run-android

good luck.

Upvotes: 0

Johncy
Johncy

Reputation: 504

On windows i resolved by

1. cd android
2. ./gradlew clean

Upvotes: 3

Helder De Baere
Helder De Baere

Reputation: 450

Try to close Android Studio while building through the CLI

Upvotes: 0

Related Questions