Error: Source path does not exist: google-services.json

We are currently attempting to switch our paid Android and iOS game, that is in release, from cordova to Cocoon, in order to take advantage of the canvas+ speedup that cocoon provides. However it is vital that we use the firebase cordova plugin, and this is providing us with some issues.

  • Cocoon Version:

  • Basic description of the problem:

It seems that it is unable to locate the google-services.json

I have put the game files in a /www folder, with the config.xml and google-services json in the folder above as per cordova and the phaser template (we are using pixi.js but that’s not really relevant)

  • Device info:
    compile time

  • Steps will reproduce the problem:
    attempt to compile with google-services.json in the root.

  • Expected result:
    should compile with file in expected location, or otherwise docs should be provided describing Cocoon file hierarchy.

  • Error log
    e[36m20190114T162040 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
    e[36m20190114T162040 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
    Subproject Path: CordovaLib
    e[91m20190114T162050 [ERROR] AndroidBuilder -e[39m Error: Source path does not exist: google-services.json
    at updatePathInternal (/workspace/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:145:19)
    at /workspace/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:223:19
    at Array.forEach ()
    at Object.updatePaths (/workspace/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:221:33)
    at updateFileResources (/workspace/platforms/android/cordova/lib/prepare.js:423:17)
    at /workspace/platforms/android/cordova/lib/prepare.js:51:9
    at _fulfilled (/workspace/platforms/android/cordova/node_modules/q/q.js:854:54)
    at /workspace/platforms/android/cordova/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/workspace/platforms/android/cordova/node_modules/q/q.js:816:13)
    at /workspace/platforms/android/cordova/node_modules/q/q.js:624:44
    e[36m20190114T162050 [DEBUG] AndroidBuilder -e[39m Source path does not exist: /google-services.json

  • Webview engine(s):

  • Used plugins (if relevant):

  • Framework/game engine (if relevant):

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.