# Could not find google-services.json while looking in \[src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug\]

**URL:** <https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299>\
**Category:** ionic-v1\
**Created:** [March 29, 2018, 9:55am UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299 "2018-03-29T09:55:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raj-prashanth](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@raj-prashanth](https://forum.ionicframework.com/u/raj-prashanth)\
**Post date:** [March 29, 2018, 9:55am UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299/1 "2018-03-29T09:55:15Z")

</div>

> iam struck while i tried to cordova build android. i just added ‘cordova-plugin-fcm’ plugin in ionic-v1 and followed the docs steps. but after that i cant solve this build issue. i dont know what iam missing!

- added google.services.json in “platform/android/google.services.json”
- tried with rootfolder too (www/google.services.json)
- added in config.xml file too  
`<resource-file src="google-services.json" target="google-services.json" />`

issue:

 ![2018-03-29](https://global.discourse-cdn.com/ionicframework/original/3X/1/2/120530ebc88a2d70aa3121bc339f04802dc755af.png)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 29, 2018, 10:01am UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299/2 "2018-03-29T10:01:06Z")

</div>

What are the docs steps you followed?

(Your title is wrong by the way, the error message in your screenshot says something different)

---

<div class="post-metadata">

**Author:** ![raj-prashanth](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@raj-prashanth](https://forum.ionicframework.com/u/raj-prashanth)\
**Post date:** [March 29, 2018, 10:09am UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299/3 "2018-03-29T10:09:03Z")

</div>

> i followed this docs to add fcm sdk [to add fcm sdk](https://firebase.google.com/docs/android/setup)

1. created a project in the firebase console
2. entered the package name and downloaded the “google.services.json” file and placed in the root folder (ionic/application/www/ ‘placed’)
3. added sdk  
a. First, add rules to your root-level build.gradle file, to include the google-services plugin and the Google’s Maven repository:

```auto
buildscript {
    // ...
    dependencies {
        // ...
        classpath 'com.google.gms:google-services:3.2.0' // google-services plugin
    }
}

allprojects {
    // ...
    repositories {
        // ...
        maven {
            url "https://maven.google.com" // Google's Maven repository
        }
    }
}

```

b. add the apply plugin line at the bottom of the file to enable the Gradle plugin:

```auto
apply plugin: 'com.android.application'

android {
  // ...
}

dependencies {
  // ...
  compile 'com.google.firebase:firebase-core:12.0.1'
  
  // Getting a "Could not find" error? Make sure you have
  // added the Google maven respository to your root build.gradle
}

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'

```

1. added cordova-plugin-fcm.
2. then tried to build an apk

and @Sujan12 sorry, i have changed the title.

---

<div class="post-metadata">

**Author:** ![hanigb](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@hanigb](https://forum.ionicframework.com/u/hanigb)\
**Post date:** [April 19, 2019, 1:22pm UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299/5 "2019-04-19T13:22:29Z")

</div>

Having the same issue! Did you manage to solve it?

---

<div class="post-metadata">

**Author:** ![raj-prashanth](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@raj-prashanth](https://forum.ionicframework.com/u/raj-prashanth)\
**Post date:** [June 20, 2019, 11:48am UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299/6 "2019-06-20T11:48:41Z")

</div>

No! sorry for late response @hanigb i just removed all this codes & fcm plugin and made use of lower level versions to finish it off my app first. Based on my requirements, its not a must do list so leaved this part.

also i moved on to the current ionic framework where lots of features,docs and tutorials are available.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:42pm UTC](https://forum.ionicframework.com/t/could-not-find-google-services-json-while-looking-in-src-nullnull-debug-src-debug-nullnull-src-nullnull-src-debug-src-nullnulldebug/126299/7 "2021-07-19T21:42:38Z")

</div>

Closed on July 19, 2021, 9:42pm UTC


