Benjith Mathew
Benjith Mathew

Reputation: 1221

Failed to create directory: project\android\app\build\intermediates\res\merged\debug\values :app:mergeDebugResources FAILED

I am trying to integrate facebook login in react-native. I used this documentation React Native FDSK, I am getting this error

enter image description here

Upvotes: 27

Views: 34185

Answers (6)

Jayadn
Jayadn

Reputation: 1

For those who didn't know the Windows [EDIT: PowerShell, not Command Prompt] syntax:

cd android; ./gradlew clean
cd ..; react-native run-android

This worked for me. source: https://github.com/facebook/react-native/issues/10367

Upvotes: 0

umair ali
umair ali

Reputation: 19

cd android && ./gradlew clean && cd .. && react-native run-android

Upvotes: 1

PPK
PPK

Reputation: 51

go to your android folder and write this folder capacitor-cordova-android-plugins

write all and its sub folders then run your command again...this fixed it for me

on Mac u can right click on the folder and click Get info, then to down and change the permissions to write permissions.

Upvotes: 0

MedElmaachi
MedElmaachi

Reputation: 912

When you are inside your project directory try using

cd android && gradlew clean && cd .. && react-native run-android

Upvotes: 82

Hasan Rıza Uzuner
Hasan Rıza Uzuner

Reputation: 475

@user3499413 you are right but you forgot && between clean and cd

cd android && gradlew clean && cd .. && react-native run-android

Upvotes: 12

Goutham KD
Goutham KD

Reputation: 21

Try keeping the solution folder locally (something like D:/MyProject ) ,Since if you keep your solution/project deeply nested within folder it may cause longer path issue.

then , try running 1. npm install 2. react-native run-android

probably this should resolve the issue.

Upvotes: 1

Related Questions