Cordova Plugin with google services dependency

Hi all,

I'm trying to build a plugin based on a cordova sdk. However the sdk has a dependency on google services.
I have tried to import the google-services.json file but everytime i tried to build the app fails with a error that the file is not found.

FAILURE: Build failed with an exception.
* What went wrong: [2021-03-03T09:09:40.096Z] [ERROR] [Build] Execution failed for task ':app:processDebugGoogleServices'.
File google-services.json is missing. The Google Services Plugin cannot function without it.

Searched Location:
/var/lib/builder/builds/400e21d7-b99c-45ca-9421-80095d24847a/source/platforms/android/app/src/nullnullDebug/ google-services.json
/var/lib/builder/builds/400e21d7-b99c-45ca-9421-80095d24847a/source/platforms/android/app/src/nullnull/debug/ google-services.json
/var/lib/builder/builds/400e21d7-b99c-45ca-9421-80095d24847a/source/platforms/android/app/src/debug/nullnull/ google-services.json

I have tried to configure the location of the files indifrente ways but without sucess
I have tried to configure locally it deploys the file to www/source/platforms/android/app/google-services.json and its not recognized

I have tried to configure with firebase it deploys to platforms/android/app/src/main/assets/www/ and its not recognized.

The platform seems to beexpecting the file to be on one of the locations on the error log above but i cannot get the file to be deployed at that specific location.

Does anyone have experienced the same problem before?

Hi Fernando,

The best you can do is take a look a sample like Firebase Mobile Sample ( and Firebase Mobile ( The sample app already includes configuration files and you can see how you must add it.

I hope it is useful.

Kind regards, David.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.