I am trying to build by native app using ionic appFlow in the cloud… howerver i get the following error.
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:
/builds/Henryisthebest/giving/android/app/src/nullnull/debug/google-services.json
/builds/Henryisthebest/giving/android/app/src/debug/nullnull/google-services.json
/builds/Henryisthebest/giving/android/app/src/nullnull/google-services.json
/builds/Henryisthebest/giving/android/app/src/debug/google-services.json
/builds/Henryisthebest/giving/android/app/src/nullnullDebug/google-services.json
/builds/Henryisthebest/giving/android/app/google-services.jso
How do i make by google-services.json file copy into the android/app folder?
@EinfachHans i have the same issue with ionic appflow. Do you have any idea(s) on how i can fix this issue without having to upload the google-services.json file (for security purposes) to my online git repository.
@EinfachHans Thanks for the reply.
So what you are saying is, the only way i can fix the issue is by including the google-services.json when uploading the project files to the repository? Because what i did is, i uploaded all the ionic project files excluding the platforms folder to my online repository. The platforms folder contains the google-services.json file in “android/app” dir. Then in connected the repository to Ionic Appflow.
I thought appflow had a provision to add this file separately.
The platforms Folder is the Place where the File should be after build. As it is 100% generated, it is the wrong Place to place additional Files before. In my project i included it in the root folder and added it to the android platform via config.xml.