Execution failed for task ‘:app:processDebugGoogleServices’ React Native Error Fix

When you’re developing an Android app with React Native it is pretty common to get stuck with the error given below:

* What went wrong:
Execution failed for task ‘:app:processDebugGoogleServices’.
> Failed to create folder: F:\YourProject\android\app
\build\generated\res\google-services\debug

This error is very common while building apps with React Native and all you need here are to clean gradle and rebuild your project.

For that, use the commands given below:

cd android && gradlew clean

Through the above command you will be navigated to android folder and gradle clean will be executed.

After that, just navigate back to project folder and rebuild your react native project using the following command

cd.. && react-native run-android

The error gets fixed with this but that doesn’t mean the error wouldn’t appear again. When the error reappears follow the above steps again to fix the error.

Leave a Reply

%d bloggers like this: