Monaca Onsen UI Discord Chat Github Repo

File google-services.json is missing.



  • Hi All,

    I’ve just tried my first build, and i got the following error

    * What went wrong:
    Execution failed for task ':app:processDebugGoogleServices'.
    > File google-services.json is missing. The Google Services Plugin cannot function without it.
    

    I’ve searched through the forum and it appears to be connected to using cordova plugins.

    I think i am only using:

    Custom Config
    v5.1.0

    Monaca Plugin
    v3.3.0

    MonacaBackend
    v2.1.0

    Splashscreen
    v5.0.3

    StatusBar
    v2.4.3

    Whitelist
    v1.3.3

    so im not sure what to do now to fix it. Any help appreciated!

    Thanks,

    Scott


  • administrators

    From your plugin list, it looks like this is caused by MonacaBackend. It is used for push notifications which requires you to have generated a google-services.json file.

    First try disabling the plugin and see if the build works. If it does then that plugin is the problem.

    If you don’t need push notifications you can leave the plugin disabled.

    If you do need push notifications, follow the instructions here for Android:
    https://docs.monaca.io/en/products_guide/push_notification/gcm/

    There is also documentation for iOS on the next page.



  • that worked! thanks!