134
Views
4
Comments
File google-services.json is missing
Application Type
Mobile
Service Studio Version
11.53.13 (Build 61176)

Hello,

I am creating a plugin using the following cordova component

https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin


The problem that is occurring when I generate the apk:


FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:processDebugGoogleServices'.

File google-services.json is missing. The Google Services Plugin cannot function without it. 

 Searched Location: 

source/platforms/android/app/src/debug/google-services.json

source/platforms/android/app/src/google-services.json

source/platforms/android/app/src/Debug/google-services.json

source/platforms/android/app/google-services.json


According to the documentation, the config.xml must be configured with the google-services.json element.


How do i solve this in outsystems? Attached the generated log.



Thank you guys!!!



AndroidBuildLog.txt
2019-12-11 17-59-12
Nelson André

Did you get this solved?

2019-12-11 17-59-12
Nelson André

To enable push support for the Android platform you will need to include the google-services.json file.

  1. Download the file from your application's Firebase console and place it in your project's root folder.
  2. Add following to Android element in your config.xml:

  

2022-11-29 22-23-45
Danilo Barbosa

Hi there,
I have the same problem.
How to solve this?

[ERROR] [Build] -- v --

[ERROR] [Build] The build phase failed to complete!

[ERROR] [Build] Additional information:

[ERROR] [Build] FAILURE: Build failed with an exception.

[ERROR] [Build] Reason: There was an issue generating the app. Some plugins using Google Services aren't correctly configured. Check the plugin documentation to ensure the setup is right.

[ERROR] [Build] * What went wrong:

[ERROR] [Build] Execution failed for task ':app:processDebugGoogleServices'.

[ERROR] [Build] > File google-services.json is missing. The Google Services Plugin cannot function without it. 

[ERROR] [Build]    Searched Location: 

[ERROR] [Build]   source/platforms/android/app/src/debug/google-services.json

[ERROR] [Build]   source/platforms/android/app/src/google-services.json

[ERROR] [Build]   source/platforms/android/app/src/Debug/google-services.json

[ERROR] [Build]   source/platforms/android/app/google-services.json

[ERROR] [Build] * Try:

[ERROR] [Build] > Run with --stacktrace option to get the stack trace.

[ERROR] [Build] > Run with --info or --debug option to get more log output.

[ERROR] [Build] > Run with --scan to get full insights.

[ERROR] [Build] > Get more help at https://help.gradle.org.

[ERROR] [Build] BUILD FAILED in 3s

[ERROR] [Build] Command failed with exit code 1: source/platforms/android/gradlew --parallel cdvBuildDebug

[ERROR] [Build] -- ^ --

[INFO] [Build] Application was not successfully generated!
Obs.: I don't have an IOS generated app generated in the dev environment. 

Tks

2022-11-29 22-23-45
Danilo Barbosa

In my case, the configuration was being done manually in the lifetime of the Extenbility Configuration.

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