# Not finding google-services.json

**URL:** <https://forum.ionicframework.com/t/not-finding-google-services-json/102974>\
**Category:** ionic-v3\
**Created:** [August 23, 2017, 11:56am UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974 "2017-08-23T11:56:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blunder](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/blunder/32/92025_2.png) [@blunder](https://forum.ionicframework.com/u/blunder)\
**Post date:** [August 23, 2017, 11:56am UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974/1 "2017-08-23T11:56:32Z")

</div>

Hello!

When i try to build my android app it results in the following:

```auto
Error: /home/jorge/Documents/Bitbucket/blunder-ionic/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it. 
   Searched Location: 
  /home/jorge/Documents/Bitbucket/blunder-ionic/platforms/android/src/debug/google-services.json
  /home/jorge/Documents/Bitbucket/blunder-ionic/platforms/android/google-services.json

```

I have been reading posts about it in the forum and some people say that it is as easy as adding the file in the locations it is requesting but as the contents of the folder “platforms” are created dynamically i don’t want to add in by hand each time i add the different platforms.

I am new to ionic so if you need any part of any file, please tell me.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![sonuyadav](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sonuyadav](https://forum.ionicframework.com/u/sonuyadav)\
**Post date:** [August 24, 2017, 8:13am UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974/2 "2017-08-24T08:13:12Z")

</div>

> [@blunder](#):
>
> File google-services.json is missing

Are you using Firebase Push with your app ? make sure your project have `google-services.json` at `\platforms\android`

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [August 24, 2017, 8:20am UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974/3 "2017-08-24T08:20:47Z")

</div>

I documented my migration to `phonegap-plugin-push` there, have a look, I explain how to get `google-services.json` and how to write a hook to copy the file on each build

> [@Phonegap Push Plugin 2.0.0 released](https://forum.ionicframework.com/t/phonegap-push-plugin-2-0-0-released/102008/6):
>
> Just successfully tested on my (real) iPhone6 and Samsung Edge, Push notifications plugin version 2.0.0 looks good to me. Here my migration guide for phonegap-plugin-push 1.10.5 to 2.0.0: 1\_Configuration files With the version 2.0.0 of the plugin you will not set anymore the SENDER\_ID during the installation of the plugin respectively set it in your config.xml. Instead of that you have to generate configuration files, respectively google-services.json for Android and GoogleService-Info.plist …

---

<div class="post-metadata">

**Author:** ![blunder](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/blunder/32/92025_2.png) [@blunder](https://forum.ionicframework.com/u/blunder)\
**Post date:** [September 6, 2017, 9:21am UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974/4 "2017-09-06T09:21:59Z")

</div>

Hi again guys, just found out why it started to need the google-services.json.

It is because of the phonegap version as @reedrichards wrote it is needed since version 2.0.0 and i am using a lower version now.

Thank you for all the answers!

---

<div class="post-metadata">

**Author:** ![Kishantechwave](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@Kishantechwave](https://forum.ionicframework.com/u/Kishantechwave)\
**Post date:** [October 9, 2018, 9:51am UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974/5 "2018-10-09T09:51:48Z")

</div>

how did you fix this? @blunder

---

<div class="post-metadata">

**Author:** ![ansarikhurshid786](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ansarikhurshid786](https://forum.ionicframework.com/u/ansarikhurshid786)\
**Post date:** [November 12, 2018, 12:46pm UTC](https://forum.ionicframework.com/t/not-finding-google-services-json/102974/6 "2018-11-12T12:46:58Z")

</div>

Step 1) Put google-services.josn file in root of project.

Step 2) In config.xml add following line:  
`<resource-file src="google-services.json" target="app/google-services.json" />`

Now remove platform and re add platform. it will copy google-service.json file in android project and work fine.
