Error “File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it”










119















I updated my project to the latest Play services classpath 'com.google.gms:google-services:1.5.0-beta2'. I am also using the latest version of playservices in my app.gradle file as:



compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'


However when I compile, Gradle throws exception as follows



Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.









share|improve this question
























  • Possible duplicate of File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

    – halfer
    Dec 23 '16 at 16:07















119















I updated my project to the latest Play services classpath 'com.google.gms:google-services:1.5.0-beta2'. I am also using the latest version of playservices in my app.gradle file as:



compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'


However when I compile, Gradle throws exception as follows



Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.









share|improve this question
























  • Possible duplicate of File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

    – halfer
    Dec 23 '16 at 16:07













119












119








119


18






I updated my project to the latest Play services classpath 'com.google.gms:google-services:1.5.0-beta2'. I am also using the latest version of playservices in my app.gradle file as:



compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'


However when I compile, Gradle throws exception as follows



Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.









share|improve this question
















I updated my project to the latest Play services classpath 'com.google.gms:google-services:1.5.0-beta2'. I am also using the latest version of playservices in my app.gradle file as:



compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'


However when I compile, Gradle throws exception as follows



Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.






android google-play-services android-gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 23 '16 at 16:06









halfer

14.7k758115




14.7k758115










asked Nov 23 '15 at 7:57









goonerDroidgoonerDroid

8,11782749




8,11782749












  • Possible duplicate of File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

    – halfer
    Dec 23 '16 at 16:07

















  • Possible duplicate of File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

    – halfer
    Dec 23 '16 at 16:07
















Possible duplicate of File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

– halfer
Dec 23 '16 at 16:07





Possible duplicate of File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

– halfer
Dec 23 '16 at 16:07












22 Answers
22






active

oldest

votes


















117














You need to get the configuration file from the developer's site and paste it in the app level directory of your project.






share|improve this answer


















  • 32





    Generate file here developers.google.com/mobile/add

    – amit
    Jan 29 '16 at 3:04






  • 6





    what is "app level" that you mean?

    – Yakob Ubaidi
    Mar 11 '16 at 13:56











  • The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

    – Adam Hurwitz
    Jun 22 '16 at 7:11











  • I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

    – Dinesh VG
    Oct 20 '16 at 17:55











  • I am using ionic and in my case it had to put inside platform/andriod/app

    – Anand_5050
    Jan 6 at 13:15


















80














Please go to this URL :



https://developers.google.com/mobile/add



Choose your Options and finally you will be able to download



google-service.json file



copy that file and paste it Into



YourProjectName/app Directory



Then recompile the project Most probably it will fly



In my case the directory looks like this :



enter image description here






share|improve this answer
































    28














    For anyone using Firebase you need to go into your console and there it should say "add project to Android". From there, it will step-by-step generate the google-services.json file for you.






    share|improve this answer

























    • i found the setup instructions at firebase.google.com/docs/database/android/start

      – kip2
      May 1 '18 at 12:33


















    7














    I received this error while trying to run Google's Firebase analytics sample app:



    Prerequisites:



    • Download https://github.com/firebase/quickstart-android

    • Add quickstart/analytics to Android Studio

    Add Procedure:



    1. Go to https://firebase.google.com/

    2. Click on "GO TO CONSOLE"

    3. Click on "Add Project"

    4. Project name: Enter: sample-app

    5. Click "Create Project"
      [Takes about 10 seconds or so...]

    6. Click "Continue"

    7. On the "Getting Started" page, click "Add Firebase to your Android app"

    8. Enter package name for the android app
      [The full package name appears at the top of the manifest: "com.google.firebase.quickstart.analytics"]

    9. Click on download google-services.json

    10. In file explorer, add google-services.json to the directory:
      "quickstart/analytics/app"
      [Warning: Do not rename the file, it must be: google-services.json]

    11. Run 'app'

      • The sample app already contains the necessary Gradle file settings.

      • When adding a new project do: Tools -> Firebase -> Analytics -> Add
        Event -> Connect App to Firebase.

      • Adding a project via Android Studio ensures that all the Gradle Dependecies are setup.


    Remove Procedure:



    1. Go to https://firebase.google.com/

    2. Click on "GO TO CONSOLE"

    3. Settings -> Project Settings -> Delete this App

    4. Settings -> Project Settings -> Delete Project

    5. Enter project ID and press delete

    I added and removed the sample app multiple times without any noticeable side effects.






    share|improve this answer




















    • 1





      thanks for that

      – mesutpiskin
      May 15 '18 at 7:19











    • Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

      – Mahdi Javaheri
      Jan 7 at 4:54


















    6














    I just run into problem downloading google-services.json from Firebase console. Turns out I had to log out from all other google accounts than the one I was using for Firebase.






    share|improve this answer


















    • 1





      What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

      – Dinesh VG
      Oct 20 '16 at 17:53











    • I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

      – kar
      Nov 8 '16 at 8:33


















    6














    You must go on Firebase console-->Settings-->Project Settings and there will be section with Download the latest config file. Download google-service.json and put into app folder. It's work for me.
    Links:
    https://developers.google.com/identity/sign-in/android/start-integrating
    https://developers.google.com/android/guides/client-auth






    share|improve this answer

























    • Define "app folder".

      – user9315861
      Mar 11 '18 at 5:47











    • Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

      – Akash
      Jan 26 at 2:07


















    6














    in my case i have saved a json file with a space like this




    google-services .json




    and the right one is




    google-services.json




    and also take care you do not put (_) instead of (-)



    may help some one.






    share|improve this answer

























    • thanks i also did mistakes to save with space

      – Deepak
      Dec 14 '17 at 7:58


















    3














    https://developers.google.com/android/
    you need to generate configuaration file which gives you access to all the services and APIs you registered for in developer console and place it in your root directory






    share|improve this answer


















    • 1





      Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

      – Tsunaze
      Nov 25 '15 at 20:49











    • If you are not using any of the services, may I know why this dependency is being included in the project ?

      – Ramesh
      Nov 26 '15 at 3:55






    • 2





      The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

      – Tsunaze
      Nov 28 '15 at 7:35


















    3














    Go to the configuration file from the developer's site and paste it in the app level directory of your current project.






    share|improve this answer






























      3














      Go to Tools-->Firebase in your Android Studio and click on Connect your app to Firebase. They will set it up for you.






      share|improve this answer






























        2














        Very Simple
        Just go to Tools->Firebase->Connect to firebase than click on sync now
        THIS WILL SURELY WORK.






        share|improve this answer






























          2















          Easiest way to add google-service.json file




          In Android Studio follow these steps:



          Click Tools > Firebase to open the Assistant window.



          Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.






          share|improve this answer






























            2














            In android studio:



            1. switch to Project view so you can see the actual project folder structure.

            2. find google-services.json file and drag it to the app directory (for some reason when I added it using file explorer, it put it in the gradle folder).

            3. Clean/Rebuild project.

            It worked fine for me from there.






            share|improve this answer
































              2














              For Cordova Apps:



              We need to place the google-services.json file in app root (I believe; when working with Cordova apps, we are not to get into other folders/files such as Gradle, Java files, platforms, etc; instead only work with them VIA the config.xml and www folder) and refer it in the config.xml like so:



              <platform name="android">
              <!-- Add this line -->
              <resource-file src="google-services.json" target="app/google-services.json" />
              </platform>


              NOTE: Ensure that the Firebase App packagename is same as the id attribute in <widget id="<packagename>" ... > are same.



              For ex:



              <!-- config.xml of Cordova App -->
              <widget id="com.appFactory.torchapp" ...>

              <!--google-serivces.json from generated from Firebase console.-->

              ...
              packagename: "com.appFactory.torchapp",
              ...



              Good Luck...






              share|improve this answer






























                1














                Even after adding all the dependencies and the file if you face any such problem it could be your incorrect file name of "google-services.json".



                Make sure you have the exact file name without any additional spaces or characters.



                I had renamed the file and had space" " in my filename which was not noticeable, later I found that my file name is wrong, so fixed it!.






                share|improve this answer






























                  0














                  That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me






                  share|improve this answer






























                    0














                    I had the same problem. The problem is because of renaming the file. You might have downloaded number of google-services.json file in you downloads folder. So when you download a new file it will download with same name but by adding numeric values in brackets. something like google-services(1).json .So you will delete this (1) and copy the file. Make sure when you are renaming it there should not be any spaces or extra . in the name of the file.






                    share|improve this answer






























                      0














                      Had faced same issue ..



                      well in my case i have saved




                      google-services.json




                      as




                      google_services.json




                      I tried every solution mentioned above but nothing helps...
                      the error was instead of "_" you need to put "-"(dash).



                      Just refactoring the file to google-services.json from google_services.json works like charm..



                      Hope this helps!!!



                      P.S. I know it's sound silly but this only works for me...






                      share|improve this answer






























                        0














                        Steps:



                        1. Navigate to your project folder and open the /app sub-folder.


                        2. Paste the .json file here.


                        3. Rebuild the project.






                        share|improve this answer






























                          0














                          for people coming here from the firebase codelabs tutorial step 3:go to page 4.



                          Apparently, if google says You should now have the android-start project open in Android Studio. ,She means it,and not You should now have the android-start project open in Android Studio, without any build-errors .

                          As the instruction says there, you have to get a configuration file from firebase. i.e , create a new project in your firebase acc with name 'friendly chat and in the next page , add its package name and SHA1 KEY.

                          after downloading the json file,add it to your project>app folder, and Rebuild project.






                          share|improve this answer






























                            0














                            https://developers.google.com/mobile/add



                            select get started and go to settings logo and then project settings
                            after that you will see below the platform like web,android,ios . select that according to your preference.
                            and then download
                            google-service.json file



                            copy that file and paste it Into



                            YourProjec/app Directory
                            and then finally sync again .






                            share|improve this answer






























                              0














                              If you don't need it anymore…



                              …build.gradle:



                              classpath 'com.google.gms:google-services:3.2.0'



                              ->



                              // classpath 'com.google.gms:google-services:3.2.0'



                              …appbuild.gradle:



                              apply plugin: 'com.google.gms.google-services'



                              ->



                              // apply plugin: 'com.google.gms.google-services'






                              share|improve this answer





















                                protected by Community Sep 13 '18 at 12:18



                                Thank you for your interest in this question.
                                Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                Would you like to answer one of these unanswered questions instead?














                                22 Answers
                                22






                                active

                                oldest

                                votes








                                22 Answers
                                22






                                active

                                oldest

                                votes









                                active

                                oldest

                                votes






                                active

                                oldest

                                votes









                                117














                                You need to get the configuration file from the developer's site and paste it in the app level directory of your project.






                                share|improve this answer


















                                • 32





                                  Generate file here developers.google.com/mobile/add

                                  – amit
                                  Jan 29 '16 at 3:04






                                • 6





                                  what is "app level" that you mean?

                                  – Yakob Ubaidi
                                  Mar 11 '16 at 13:56











                                • The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

                                  – Adam Hurwitz
                                  Jun 22 '16 at 7:11











                                • I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

                                  – Dinesh VG
                                  Oct 20 '16 at 17:55











                                • I am using ionic and in my case it had to put inside platform/andriod/app

                                  – Anand_5050
                                  Jan 6 at 13:15















                                117














                                You need to get the configuration file from the developer's site and paste it in the app level directory of your project.






                                share|improve this answer


















                                • 32





                                  Generate file here developers.google.com/mobile/add

                                  – amit
                                  Jan 29 '16 at 3:04






                                • 6





                                  what is "app level" that you mean?

                                  – Yakob Ubaidi
                                  Mar 11 '16 at 13:56











                                • The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

                                  – Adam Hurwitz
                                  Jun 22 '16 at 7:11











                                • I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

                                  – Dinesh VG
                                  Oct 20 '16 at 17:55











                                • I am using ionic and in my case it had to put inside platform/andriod/app

                                  – Anand_5050
                                  Jan 6 at 13:15













                                117












                                117








                                117







                                You need to get the configuration file from the developer's site and paste it in the app level directory of your project.






                                share|improve this answer













                                You need to get the configuration file from the developer's site and paste it in the app level directory of your project.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Nov 23 '15 at 8:02









                                johnrao07johnrao07

                                3,80431632




                                3,80431632







                                • 32





                                  Generate file here developers.google.com/mobile/add

                                  – amit
                                  Jan 29 '16 at 3:04






                                • 6





                                  what is "app level" that you mean?

                                  – Yakob Ubaidi
                                  Mar 11 '16 at 13:56











                                • The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

                                  – Adam Hurwitz
                                  Jun 22 '16 at 7:11











                                • I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

                                  – Dinesh VG
                                  Oct 20 '16 at 17:55











                                • I am using ionic and in my case it had to put inside platform/andriod/app

                                  – Anand_5050
                                  Jan 6 at 13:15












                                • 32





                                  Generate file here developers.google.com/mobile/add

                                  – amit
                                  Jan 29 '16 at 3:04






                                • 6





                                  what is "app level" that you mean?

                                  – Yakob Ubaidi
                                  Mar 11 '16 at 13:56











                                • The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

                                  – Adam Hurwitz
                                  Jun 22 '16 at 7:11











                                • I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

                                  – Dinesh VG
                                  Oct 20 '16 at 17:55











                                • I am using ionic and in my case it had to put inside platform/andriod/app

                                  – Anand_5050
                                  Jan 6 at 13:15







                                32




                                32





                                Generate file here developers.google.com/mobile/add

                                – amit
                                Jan 29 '16 at 3:04





                                Generate file here developers.google.com/mobile/add

                                – amit
                                Jan 29 '16 at 3:04




                                6




                                6





                                what is "app level" that you mean?

                                – Yakob Ubaidi
                                Mar 11 '16 at 13:56





                                what is "app level" that you mean?

                                – Yakob Ubaidi
                                Mar 11 '16 at 13:56













                                The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

                                – Adam Hurwitz
                                Jun 22 '16 at 7:11





                                The app ran for me after going to the link above. Here's a screenshot of where I placed the config file "google-services.json" photos.google.com/share/…

                                – Adam Hurwitz
                                Jun 22 '16 at 7:11













                                I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

                                – Dinesh VG
                                Oct 20 '16 at 17:55





                                I have generated the file and also filled in the build.grade at root level and app level, but still get the same error on a gradle build ?

                                – Dinesh VG
                                Oct 20 '16 at 17:55













                                I am using ionic and in my case it had to put inside platform/andriod/app

                                – Anand_5050
                                Jan 6 at 13:15





                                I am using ionic and in my case it had to put inside platform/andriod/app

                                – Anand_5050
                                Jan 6 at 13:15













                                80














                                Please go to this URL :



                                https://developers.google.com/mobile/add



                                Choose your Options and finally you will be able to download



                                google-service.json file



                                copy that file and paste it Into



                                YourProjectName/app Directory



                                Then recompile the project Most probably it will fly



                                In my case the directory looks like this :



                                enter image description here






                                share|improve this answer





























                                  80














                                  Please go to this URL :



                                  https://developers.google.com/mobile/add



                                  Choose your Options and finally you will be able to download



                                  google-service.json file



                                  copy that file and paste it Into



                                  YourProjectName/app Directory



                                  Then recompile the project Most probably it will fly



                                  In my case the directory looks like this :



                                  enter image description here






                                  share|improve this answer



























                                    80












                                    80








                                    80







                                    Please go to this URL :



                                    https://developers.google.com/mobile/add



                                    Choose your Options and finally you will be able to download



                                    google-service.json file



                                    copy that file and paste it Into



                                    YourProjectName/app Directory



                                    Then recompile the project Most probably it will fly



                                    In my case the directory looks like this :



                                    enter image description here






                                    share|improve this answer















                                    Please go to this URL :



                                    https://developers.google.com/mobile/add



                                    Choose your Options and finally you will be able to download



                                    google-service.json file



                                    copy that file and paste it Into



                                    YourProjectName/app Directory



                                    Then recompile the project Most probably it will fly



                                    In my case the directory looks like this :



                                    enter image description here







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Aug 27 '17 at 16:31









                                    today

                                    11.1k22139




                                    11.1k22139










                                    answered Mar 16 '16 at 6:45









                                    erluxmanerluxman

                                    5,89034271




                                    5,89034271





















                                        28














                                        For anyone using Firebase you need to go into your console and there it should say "add project to Android". From there, it will step-by-step generate the google-services.json file for you.






                                        share|improve this answer

























                                        • i found the setup instructions at firebase.google.com/docs/database/android/start

                                          – kip2
                                          May 1 '18 at 12:33















                                        28














                                        For anyone using Firebase you need to go into your console and there it should say "add project to Android". From there, it will step-by-step generate the google-services.json file for you.






                                        share|improve this answer

























                                        • i found the setup instructions at firebase.google.com/docs/database/android/start

                                          – kip2
                                          May 1 '18 at 12:33













                                        28












                                        28








                                        28







                                        For anyone using Firebase you need to go into your console and there it should say "add project to Android". From there, it will step-by-step generate the google-services.json file for you.






                                        share|improve this answer















                                        For anyone using Firebase you need to go into your console and there it should say "add project to Android". From there, it will step-by-step generate the google-services.json file for you.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Oct 14 '16 at 18:29

























                                        answered Jun 11 '16 at 18:16









                                        MicroMicro

                                        5,71065684




                                        5,71065684












                                        • i found the setup instructions at firebase.google.com/docs/database/android/start

                                          – kip2
                                          May 1 '18 at 12:33

















                                        • i found the setup instructions at firebase.google.com/docs/database/android/start

                                          – kip2
                                          May 1 '18 at 12:33
















                                        i found the setup instructions at firebase.google.com/docs/database/android/start

                                        – kip2
                                        May 1 '18 at 12:33





                                        i found the setup instructions at firebase.google.com/docs/database/android/start

                                        – kip2
                                        May 1 '18 at 12:33











                                        7














                                        I received this error while trying to run Google's Firebase analytics sample app:



                                        Prerequisites:



                                        • Download https://github.com/firebase/quickstart-android

                                        • Add quickstart/analytics to Android Studio

                                        Add Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Click on "Add Project"

                                        4. Project name: Enter: sample-app

                                        5. Click "Create Project"
                                          [Takes about 10 seconds or so...]

                                        6. Click "Continue"

                                        7. On the "Getting Started" page, click "Add Firebase to your Android app"

                                        8. Enter package name for the android app
                                          [The full package name appears at the top of the manifest: "com.google.firebase.quickstart.analytics"]

                                        9. Click on download google-services.json

                                        10. In file explorer, add google-services.json to the directory:
                                          "quickstart/analytics/app"
                                          [Warning: Do not rename the file, it must be: google-services.json]

                                        11. Run 'app'

                                          • The sample app already contains the necessary Gradle file settings.

                                          • When adding a new project do: Tools -> Firebase -> Analytics -> Add
                                            Event -> Connect App to Firebase.

                                          • Adding a project via Android Studio ensures that all the Gradle Dependecies are setup.


                                        Remove Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Settings -> Project Settings -> Delete this App

                                        4. Settings -> Project Settings -> Delete Project

                                        5. Enter project ID and press delete

                                        I added and removed the sample app multiple times without any noticeable side effects.






                                        share|improve this answer




















                                        • 1





                                          thanks for that

                                          – mesutpiskin
                                          May 15 '18 at 7:19











                                        • Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

                                          – Mahdi Javaheri
                                          Jan 7 at 4:54















                                        7














                                        I received this error while trying to run Google's Firebase analytics sample app:



                                        Prerequisites:



                                        • Download https://github.com/firebase/quickstart-android

                                        • Add quickstart/analytics to Android Studio

                                        Add Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Click on "Add Project"

                                        4. Project name: Enter: sample-app

                                        5. Click "Create Project"
                                          [Takes about 10 seconds or so...]

                                        6. Click "Continue"

                                        7. On the "Getting Started" page, click "Add Firebase to your Android app"

                                        8. Enter package name for the android app
                                          [The full package name appears at the top of the manifest: "com.google.firebase.quickstart.analytics"]

                                        9. Click on download google-services.json

                                        10. In file explorer, add google-services.json to the directory:
                                          "quickstart/analytics/app"
                                          [Warning: Do not rename the file, it must be: google-services.json]

                                        11. Run 'app'

                                          • The sample app already contains the necessary Gradle file settings.

                                          • When adding a new project do: Tools -> Firebase -> Analytics -> Add
                                            Event -> Connect App to Firebase.

                                          • Adding a project via Android Studio ensures that all the Gradle Dependecies are setup.


                                        Remove Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Settings -> Project Settings -> Delete this App

                                        4. Settings -> Project Settings -> Delete Project

                                        5. Enter project ID and press delete

                                        I added and removed the sample app multiple times without any noticeable side effects.






                                        share|improve this answer




















                                        • 1





                                          thanks for that

                                          – mesutpiskin
                                          May 15 '18 at 7:19











                                        • Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

                                          – Mahdi Javaheri
                                          Jan 7 at 4:54













                                        7












                                        7








                                        7







                                        I received this error while trying to run Google's Firebase analytics sample app:



                                        Prerequisites:



                                        • Download https://github.com/firebase/quickstart-android

                                        • Add quickstart/analytics to Android Studio

                                        Add Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Click on "Add Project"

                                        4. Project name: Enter: sample-app

                                        5. Click "Create Project"
                                          [Takes about 10 seconds or so...]

                                        6. Click "Continue"

                                        7. On the "Getting Started" page, click "Add Firebase to your Android app"

                                        8. Enter package name for the android app
                                          [The full package name appears at the top of the manifest: "com.google.firebase.quickstart.analytics"]

                                        9. Click on download google-services.json

                                        10. In file explorer, add google-services.json to the directory:
                                          "quickstart/analytics/app"
                                          [Warning: Do not rename the file, it must be: google-services.json]

                                        11. Run 'app'

                                          • The sample app already contains the necessary Gradle file settings.

                                          • When adding a new project do: Tools -> Firebase -> Analytics -> Add
                                            Event -> Connect App to Firebase.

                                          • Adding a project via Android Studio ensures that all the Gradle Dependecies are setup.


                                        Remove Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Settings -> Project Settings -> Delete this App

                                        4. Settings -> Project Settings -> Delete Project

                                        5. Enter project ID and press delete

                                        I added and removed the sample app multiple times without any noticeable side effects.






                                        share|improve this answer















                                        I received this error while trying to run Google's Firebase analytics sample app:



                                        Prerequisites:



                                        • Download https://github.com/firebase/quickstart-android

                                        • Add quickstart/analytics to Android Studio

                                        Add Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Click on "Add Project"

                                        4. Project name: Enter: sample-app

                                        5. Click "Create Project"
                                          [Takes about 10 seconds or so...]

                                        6. Click "Continue"

                                        7. On the "Getting Started" page, click "Add Firebase to your Android app"

                                        8. Enter package name for the android app
                                          [The full package name appears at the top of the manifest: "com.google.firebase.quickstart.analytics"]

                                        9. Click on download google-services.json

                                        10. In file explorer, add google-services.json to the directory:
                                          "quickstart/analytics/app"
                                          [Warning: Do not rename the file, it must be: google-services.json]

                                        11. Run 'app'

                                          • The sample app already contains the necessary Gradle file settings.

                                          • When adding a new project do: Tools -> Firebase -> Analytics -> Add
                                            Event -> Connect App to Firebase.

                                          • Adding a project via Android Studio ensures that all the Gradle Dependecies are setup.


                                        Remove Procedure:



                                        1. Go to https://firebase.google.com/

                                        2. Click on "GO TO CONSOLE"

                                        3. Settings -> Project Settings -> Delete this App

                                        4. Settings -> Project Settings -> Delete Project

                                        5. Enter project ID and press delete

                                        I added and removed the sample app multiple times without any noticeable side effects.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited May 4 '18 at 13:12

























                                        answered May 4 '18 at 11:22









                                        ElletlarElletlar

                                        1,79941525




                                        1,79941525







                                        • 1





                                          thanks for that

                                          – mesutpiskin
                                          May 15 '18 at 7:19











                                        • Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

                                          – Mahdi Javaheri
                                          Jan 7 at 4:54












                                        • 1





                                          thanks for that

                                          – mesutpiskin
                                          May 15 '18 at 7:19











                                        • Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

                                          – Mahdi Javaheri
                                          Jan 7 at 4:54







                                        1




                                        1





                                        thanks for that

                                        – mesutpiskin
                                        May 15 '18 at 7:19





                                        thanks for that

                                        – mesutpiskin
                                        May 15 '18 at 7:19













                                        Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

                                        – Mahdi Javaheri
                                        Jan 7 at 4:54





                                        Since AndroidStudio 3.0 you can use Firebase assistant from Tools->Firebase

                                        – Mahdi Javaheri
                                        Jan 7 at 4:54











                                        6














                                        I just run into problem downloading google-services.json from Firebase console. Turns out I had to log out from all other google accounts than the one I was using for Firebase.






                                        share|improve this answer


















                                        • 1





                                          What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

                                          – Dinesh VG
                                          Oct 20 '16 at 17:53











                                        • I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

                                          – kar
                                          Nov 8 '16 at 8:33















                                        6














                                        I just run into problem downloading google-services.json from Firebase console. Turns out I had to log out from all other google accounts than the one I was using for Firebase.






                                        share|improve this answer


















                                        • 1





                                          What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

                                          – Dinesh VG
                                          Oct 20 '16 at 17:53











                                        • I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

                                          – kar
                                          Nov 8 '16 at 8:33













                                        6












                                        6








                                        6







                                        I just run into problem downloading google-services.json from Firebase console. Turns out I had to log out from all other google accounts than the one I was using for Firebase.






                                        share|improve this answer













                                        I just run into problem downloading google-services.json from Firebase console. Turns out I had to log out from all other google accounts than the one I was using for Firebase.







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jul 26 '16 at 7:39









                                        karkar

                                        628614




                                        628614







                                        • 1





                                          What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

                                          – Dinesh VG
                                          Oct 20 '16 at 17:53











                                        • I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

                                          – kar
                                          Nov 8 '16 at 8:33












                                        • 1





                                          What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

                                          – Dinesh VG
                                          Oct 20 '16 at 17:53











                                        • I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

                                          – kar
                                          Nov 8 '16 at 8:33







                                        1




                                        1





                                        What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

                                        – Dinesh VG
                                        Oct 20 '16 at 17:53





                                        What do you mean log out from other accounts ? Did you need to log out on the device or the browser ?

                                        – Dinesh VG
                                        Oct 20 '16 at 17:53













                                        I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

                                        – kar
                                        Nov 8 '16 at 8:33





                                        I am usually logged in to multiple Google accounts at once in the browser (you can see them in top right corner of any Google site). I had to log out from all of them except the one used for Firebase before it started working.

                                        – kar
                                        Nov 8 '16 at 8:33











                                        6














                                        You must go on Firebase console-->Settings-->Project Settings and there will be section with Download the latest config file. Download google-service.json and put into app folder. It's work for me.
                                        Links:
                                        https://developers.google.com/identity/sign-in/android/start-integrating
                                        https://developers.google.com/android/guides/client-auth






                                        share|improve this answer

























                                        • Define "app folder".

                                          – user9315861
                                          Mar 11 '18 at 5:47











                                        • Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

                                          – Akash
                                          Jan 26 at 2:07















                                        6














                                        You must go on Firebase console-->Settings-->Project Settings and there will be section with Download the latest config file. Download google-service.json and put into app folder. It's work for me.
                                        Links:
                                        https://developers.google.com/identity/sign-in/android/start-integrating
                                        https://developers.google.com/android/guides/client-auth






                                        share|improve this answer

























                                        • Define "app folder".

                                          – user9315861
                                          Mar 11 '18 at 5:47











                                        • Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

                                          – Akash
                                          Jan 26 at 2:07













                                        6












                                        6








                                        6







                                        You must go on Firebase console-->Settings-->Project Settings and there will be section with Download the latest config file. Download google-service.json and put into app folder. It's work for me.
                                        Links:
                                        https://developers.google.com/identity/sign-in/android/start-integrating
                                        https://developers.google.com/android/guides/client-auth






                                        share|improve this answer















                                        You must go on Firebase console-->Settings-->Project Settings and there will be section with Download the latest config file. Download google-service.json and put into app folder. It's work for me.
                                        Links:
                                        https://developers.google.com/identity/sign-in/android/start-integrating
                                        https://developers.google.com/android/guides/client-auth







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Apr 6 '17 at 8:24

























                                        answered Apr 5 '17 at 9:07









                                        OqiOqi

                                        6112




                                        6112












                                        • Define "app folder".

                                          – user9315861
                                          Mar 11 '18 at 5:47











                                        • Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

                                          – Akash
                                          Jan 26 at 2:07

















                                        • Define "app folder".

                                          – user9315861
                                          Mar 11 '18 at 5:47











                                        • Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

                                          – Akash
                                          Jan 26 at 2:07
















                                        Define "app folder".

                                        – user9315861
                                        Mar 11 '18 at 5:47





                                        Define "app folder".

                                        – user9315861
                                        Mar 11 '18 at 5:47













                                        Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

                                        – Akash
                                        Jan 26 at 2:07





                                        Under projects-settings, we need to ADD APP and it will generate a google-services.json file that can be downloaded and added to <appName>/platforms/<platformName>/google-services.json. Good Luck...

                                        – Akash
                                        Jan 26 at 2:07











                                        6














                                        in my case i have saved a json file with a space like this




                                        google-services .json




                                        and the right one is




                                        google-services.json




                                        and also take care you do not put (_) instead of (-)



                                        may help some one.






                                        share|improve this answer

























                                        • thanks i also did mistakes to save with space

                                          – Deepak
                                          Dec 14 '17 at 7:58















                                        6














                                        in my case i have saved a json file with a space like this




                                        google-services .json




                                        and the right one is




                                        google-services.json




                                        and also take care you do not put (_) instead of (-)



                                        may help some one.






                                        share|improve this answer

























                                        • thanks i also did mistakes to save with space

                                          – Deepak
                                          Dec 14 '17 at 7:58













                                        6












                                        6








                                        6







                                        in my case i have saved a json file with a space like this




                                        google-services .json




                                        and the right one is




                                        google-services.json




                                        and also take care you do not put (_) instead of (-)



                                        may help some one.






                                        share|improve this answer















                                        in my case i have saved a json file with a space like this




                                        google-services .json




                                        and the right one is




                                        google-services.json




                                        and also take care you do not put (_) instead of (-)



                                        may help some one.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Nov 12 '18 at 22:20









                                        Sean Kladek

                                        3,47811425




                                        3,47811425










                                        answered Jun 19 '17 at 2:26









                                        Abdalrhman AlkhulaqiAbdalrhman Alkhulaqi

                                        10616




                                        10616












                                        • thanks i also did mistakes to save with space

                                          – Deepak
                                          Dec 14 '17 at 7:58

















                                        • thanks i also did mistakes to save with space

                                          – Deepak
                                          Dec 14 '17 at 7:58
















                                        thanks i also did mistakes to save with space

                                        – Deepak
                                        Dec 14 '17 at 7:58





                                        thanks i also did mistakes to save with space

                                        – Deepak
                                        Dec 14 '17 at 7:58











                                        3














                                        https://developers.google.com/android/
                                        you need to generate configuaration file which gives you access to all the services and APIs you registered for in developer console and place it in your root directory






                                        share|improve this answer


















                                        • 1





                                          Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

                                          – Tsunaze
                                          Nov 25 '15 at 20:49











                                        • If you are not using any of the services, may I know why this dependency is being included in the project ?

                                          – Ramesh
                                          Nov 26 '15 at 3:55






                                        • 2





                                          The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

                                          – Tsunaze
                                          Nov 28 '15 at 7:35















                                        3














                                        https://developers.google.com/android/
                                        you need to generate configuaration file which gives you access to all the services and APIs you registered for in developer console and place it in your root directory






                                        share|improve this answer


















                                        • 1





                                          Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

                                          – Tsunaze
                                          Nov 25 '15 at 20:49











                                        • If you are not using any of the services, may I know why this dependency is being included in the project ?

                                          – Ramesh
                                          Nov 26 '15 at 3:55






                                        • 2





                                          The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

                                          – Tsunaze
                                          Nov 28 '15 at 7:35













                                        3












                                        3








                                        3







                                        https://developers.google.com/android/
                                        you need to generate configuaration file which gives you access to all the services and APIs you registered for in developer console and place it in your root directory






                                        share|improve this answer













                                        https://developers.google.com/android/
                                        you need to generate configuaration file which gives you access to all the services and APIs you registered for in developer console and place it in your root directory







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Nov 23 '15 at 8:20









                                        RameshRamesh

                                        1,1801812




                                        1,1801812







                                        • 1





                                          Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

                                          – Tsunaze
                                          Nov 25 '15 at 20:49











                                        • If you are not using any of the services, may I know why this dependency is being included in the project ?

                                          – Ramesh
                                          Nov 26 '15 at 3:55






                                        • 2





                                          The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

                                          – Tsunaze
                                          Nov 28 '15 at 7:35












                                        • 1





                                          Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

                                          – Tsunaze
                                          Nov 25 '15 at 20:49











                                        • If you are not using any of the services, may I know why this dependency is being included in the project ?

                                          – Ramesh
                                          Nov 26 '15 at 3:55






                                        • 2





                                          The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

                                          – Tsunaze
                                          Nov 28 '15 at 7:35







                                        1




                                        1





                                        Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

                                        – Tsunaze
                                        Nov 25 '15 at 20:49





                                        Well, this is really strange, i didn't need any of the services displayed. But still needed to activate one to get the json file..

                                        – Tsunaze
                                        Nov 25 '15 at 20:49













                                        If you are not using any of the services, may I know why this dependency is being included in the project ?

                                        – Ramesh
                                        Nov 26 '15 at 3:55





                                        If you are not using any of the services, may I know why this dependency is being included in the project ?

                                        – Ramesh
                                        Nov 26 '15 at 3:55




                                        2




                                        2





                                        The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

                                        – Tsunaze
                                        Nov 28 '15 at 7:35





                                        The list of services proposed by Google are : Sign In, Cloud Messaging, Analytics, App Invite, Admob. If i just want to use the Location service, i still need to have the configuration file.

                                        – Tsunaze
                                        Nov 28 '15 at 7:35











                                        3














                                        Go to the configuration file from the developer's site and paste it in the app level directory of your current project.






                                        share|improve this answer



























                                          3














                                          Go to the configuration file from the developer's site and paste it in the app level directory of your current project.






                                          share|improve this answer

























                                            3












                                            3








                                            3







                                            Go to the configuration file from the developer's site and paste it in the app level directory of your current project.






                                            share|improve this answer













                                            Go to the configuration file from the developer's site and paste it in the app level directory of your current project.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Feb 8 '17 at 6:08









                                            Avanish SinghAvanish Singh

                                            22338




                                            22338





















                                                3














                                                Go to Tools-->Firebase in your Android Studio and click on Connect your app to Firebase. They will set it up for you.






                                                share|improve this answer



























                                                  3














                                                  Go to Tools-->Firebase in your Android Studio and click on Connect your app to Firebase. They will set it up for you.






                                                  share|improve this answer

























                                                    3












                                                    3








                                                    3







                                                    Go to Tools-->Firebase in your Android Studio and click on Connect your app to Firebase. They will set it up for you.






                                                    share|improve this answer













                                                    Go to Tools-->Firebase in your Android Studio and click on Connect your app to Firebase. They will set it up for you.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Jan 8 '18 at 14:17









                                                    IshamIsham

                                                    304112




                                                    304112





















                                                        2














                                                        Very Simple
                                                        Just go to Tools->Firebase->Connect to firebase than click on sync now
                                                        THIS WILL SURELY WORK.






                                                        share|improve this answer



























                                                          2














                                                          Very Simple
                                                          Just go to Tools->Firebase->Connect to firebase than click on sync now
                                                          THIS WILL SURELY WORK.






                                                          share|improve this answer

























                                                            2












                                                            2








                                                            2







                                                            Very Simple
                                                            Just go to Tools->Firebase->Connect to firebase than click on sync now
                                                            THIS WILL SURELY WORK.






                                                            share|improve this answer













                                                            Very Simple
                                                            Just go to Tools->Firebase->Connect to firebase than click on sync now
                                                            THIS WILL SURELY WORK.







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Jul 22 '17 at 15:36









                                                            ykbykb

                                                            266




                                                            266





















                                                                2















                                                                Easiest way to add google-service.json file




                                                                In Android Studio follow these steps:



                                                                Click Tools > Firebase to open the Assistant window.



                                                                Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.






                                                                share|improve this answer



























                                                                  2















                                                                  Easiest way to add google-service.json file




                                                                  In Android Studio follow these steps:



                                                                  Click Tools > Firebase to open the Assistant window.



                                                                  Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.






                                                                  share|improve this answer

























                                                                    2












                                                                    2








                                                                    2








                                                                    Easiest way to add google-service.json file




                                                                    In Android Studio follow these steps:



                                                                    Click Tools > Firebase to open the Assistant window.



                                                                    Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.






                                                                    share|improve this answer














                                                                    Easiest way to add google-service.json file




                                                                    In Android Studio follow these steps:



                                                                    Click Tools > Firebase to open the Assistant window.



                                                                    Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Jun 18 '18 at 5:34









                                                                    Amir DeAmir De

                                                                    9041823




                                                                    9041823





















                                                                        2














                                                                        In android studio:



                                                                        1. switch to Project view so you can see the actual project folder structure.

                                                                        2. find google-services.json file and drag it to the app directory (for some reason when I added it using file explorer, it put it in the gradle folder).

                                                                        3. Clean/Rebuild project.

                                                                        It worked fine for me from there.






                                                                        share|improve this answer





























                                                                          2














                                                                          In android studio:



                                                                          1. switch to Project view so you can see the actual project folder structure.

                                                                          2. find google-services.json file and drag it to the app directory (for some reason when I added it using file explorer, it put it in the gradle folder).

                                                                          3. Clean/Rebuild project.

                                                                          It worked fine for me from there.






                                                                          share|improve this answer



























                                                                            2












                                                                            2








                                                                            2







                                                                            In android studio:



                                                                            1. switch to Project view so you can see the actual project folder structure.

                                                                            2. find google-services.json file and drag it to the app directory (for some reason when I added it using file explorer, it put it in the gradle folder).

                                                                            3. Clean/Rebuild project.

                                                                            It worked fine for me from there.






                                                                            share|improve this answer















                                                                            In android studio:



                                                                            1. switch to Project view so you can see the actual project folder structure.

                                                                            2. find google-services.json file and drag it to the app directory (for some reason when I added it using file explorer, it put it in the gradle folder).

                                                                            3. Clean/Rebuild project.

                                                                            It worked fine for me from there.







                                                                            share|improve this answer














                                                                            share|improve this answer



                                                                            share|improve this answer








                                                                            edited Jan 26 at 2:03









                                                                            Akash

                                                                            6,62014141




                                                                            6,62014141










                                                                            answered Dec 19 '17 at 21:47









                                                                            ironmantis7xironmantis7x

                                                                            46111037




                                                                            46111037





















                                                                                2














                                                                                For Cordova Apps:



                                                                                We need to place the google-services.json file in app root (I believe; when working with Cordova apps, we are not to get into other folders/files such as Gradle, Java files, platforms, etc; instead only work with them VIA the config.xml and www folder) and refer it in the config.xml like so:



                                                                                <platform name="android">
                                                                                <!-- Add this line -->
                                                                                <resource-file src="google-services.json" target="app/google-services.json" />
                                                                                </platform>


                                                                                NOTE: Ensure that the Firebase App packagename is same as the id attribute in <widget id="<packagename>" ... > are same.



                                                                                For ex:



                                                                                <!-- config.xml of Cordova App -->
                                                                                <widget id="com.appFactory.torchapp" ...>

                                                                                <!--google-serivces.json from generated from Firebase console.-->

                                                                                ...
                                                                                packagename: "com.appFactory.torchapp",
                                                                                ...



                                                                                Good Luck...






                                                                                share|improve this answer



























                                                                                  2














                                                                                  For Cordova Apps:



                                                                                  We need to place the google-services.json file in app root (I believe; when working with Cordova apps, we are not to get into other folders/files such as Gradle, Java files, platforms, etc; instead only work with them VIA the config.xml and www folder) and refer it in the config.xml like so:



                                                                                  <platform name="android">
                                                                                  <!-- Add this line -->
                                                                                  <resource-file src="google-services.json" target="app/google-services.json" />
                                                                                  </platform>


                                                                                  NOTE: Ensure that the Firebase App packagename is same as the id attribute in <widget id="<packagename>" ... > are same.



                                                                                  For ex:



                                                                                  <!-- config.xml of Cordova App -->
                                                                                  <widget id="com.appFactory.torchapp" ...>

                                                                                  <!--google-serivces.json from generated from Firebase console.-->

                                                                                  ...
                                                                                  packagename: "com.appFactory.torchapp",
                                                                                  ...



                                                                                  Good Luck...






                                                                                  share|improve this answer

























                                                                                    2












                                                                                    2








                                                                                    2







                                                                                    For Cordova Apps:



                                                                                    We need to place the google-services.json file in app root (I believe; when working with Cordova apps, we are not to get into other folders/files such as Gradle, Java files, platforms, etc; instead only work with them VIA the config.xml and www folder) and refer it in the config.xml like so:



                                                                                    <platform name="android">
                                                                                    <!-- Add this line -->
                                                                                    <resource-file src="google-services.json" target="app/google-services.json" />
                                                                                    </platform>


                                                                                    NOTE: Ensure that the Firebase App packagename is same as the id attribute in <widget id="<packagename>" ... > are same.



                                                                                    For ex:



                                                                                    <!-- config.xml of Cordova App -->
                                                                                    <widget id="com.appFactory.torchapp" ...>

                                                                                    <!--google-serivces.json from generated from Firebase console.-->

                                                                                    ...
                                                                                    packagename: "com.appFactory.torchapp",
                                                                                    ...



                                                                                    Good Luck...






                                                                                    share|improve this answer













                                                                                    For Cordova Apps:



                                                                                    We need to place the google-services.json file in app root (I believe; when working with Cordova apps, we are not to get into other folders/files such as Gradle, Java files, platforms, etc; instead only work with them VIA the config.xml and www folder) and refer it in the config.xml like so:



                                                                                    <platform name="android">
                                                                                    <!-- Add this line -->
                                                                                    <resource-file src="google-services.json" target="app/google-services.json" />
                                                                                    </platform>


                                                                                    NOTE: Ensure that the Firebase App packagename is same as the id attribute in <widget id="<packagename>" ... > are same.



                                                                                    For ex:



                                                                                    <!-- config.xml of Cordova App -->
                                                                                    <widget id="com.appFactory.torchapp" ...>

                                                                                    <!--google-serivces.json from generated from Firebase console.-->

                                                                                    ...
                                                                                    packagename: "com.appFactory.torchapp",
                                                                                    ...



                                                                                    Good Luck...







                                                                                    share|improve this answer












                                                                                    share|improve this answer



                                                                                    share|improve this answer










                                                                                    answered Jan 26 at 8:10









                                                                                    AkashAkash

                                                                                    6,62014141




                                                                                    6,62014141





















                                                                                        1














                                                                                        Even after adding all the dependencies and the file if you face any such problem it could be your incorrect file name of "google-services.json".



                                                                                        Make sure you have the exact file name without any additional spaces or characters.



                                                                                        I had renamed the file and had space" " in my filename which was not noticeable, later I found that my file name is wrong, so fixed it!.






                                                                                        share|improve this answer



























                                                                                          1














                                                                                          Even after adding all the dependencies and the file if you face any such problem it could be your incorrect file name of "google-services.json".



                                                                                          Make sure you have the exact file name without any additional spaces or characters.



                                                                                          I had renamed the file and had space" " in my filename which was not noticeable, later I found that my file name is wrong, so fixed it!.






                                                                                          share|improve this answer

























                                                                                            1












                                                                                            1








                                                                                            1







                                                                                            Even after adding all the dependencies and the file if you face any such problem it could be your incorrect file name of "google-services.json".



                                                                                            Make sure you have the exact file name without any additional spaces or characters.



                                                                                            I had renamed the file and had space" " in my filename which was not noticeable, later I found that my file name is wrong, so fixed it!.






                                                                                            share|improve this answer













                                                                                            Even after adding all the dependencies and the file if you face any such problem it could be your incorrect file name of "google-services.json".



                                                                                            Make sure you have the exact file name without any additional spaces or characters.



                                                                                            I had renamed the file and had space" " in my filename which was not noticeable, later I found that my file name is wrong, so fixed it!.







                                                                                            share|improve this answer












                                                                                            share|improve this answer



                                                                                            share|improve this answer










                                                                                            answered Feb 11 '18 at 19:37









                                                                                            Girish B.RGirish B.R

                                                                                            19926




                                                                                            19926





















                                                                                                0














                                                                                                That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me






                                                                                                share|improve this answer



























                                                                                                  0














                                                                                                  That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me






                                                                                                  share|improve this answer

























                                                                                                    0












                                                                                                    0








                                                                                                    0







                                                                                                    That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me






                                                                                                    share|improve this answer













                                                                                                    That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me







                                                                                                    share|improve this answer












                                                                                                    share|improve this answer



                                                                                                    share|improve this answer










                                                                                                    answered Nov 14 '16 at 20:19









                                                                                                    abdulrehman javedabdulrehman javed

                                                                                                    33




                                                                                                    33





















                                                                                                        0














                                                                                                        I had the same problem. The problem is because of renaming the file. You might have downloaded number of google-services.json file in you downloads folder. So when you download a new file it will download with same name but by adding numeric values in brackets. something like google-services(1).json .So you will delete this (1) and copy the file. Make sure when you are renaming it there should not be any spaces or extra . in the name of the file.






                                                                                                        share|improve this answer



























                                                                                                          0














                                                                                                          I had the same problem. The problem is because of renaming the file. You might have downloaded number of google-services.json file in you downloads folder. So when you download a new file it will download with same name but by adding numeric values in brackets. something like google-services(1).json .So you will delete this (1) and copy the file. Make sure when you are renaming it there should not be any spaces or extra . in the name of the file.






                                                                                                          share|improve this answer

























                                                                                                            0












                                                                                                            0








                                                                                                            0







                                                                                                            I had the same problem. The problem is because of renaming the file. You might have downloaded number of google-services.json file in you downloads folder. So when you download a new file it will download with same name but by adding numeric values in brackets. something like google-services(1).json .So you will delete this (1) and copy the file. Make sure when you are renaming it there should not be any spaces or extra . in the name of the file.






                                                                                                            share|improve this answer













                                                                                                            I had the same problem. The problem is because of renaming the file. You might have downloaded number of google-services.json file in you downloads folder. So when you download a new file it will download with same name but by adding numeric values in brackets. something like google-services(1).json .So you will delete this (1) and copy the file. Make sure when you are renaming it there should not be any spaces or extra . in the name of the file.







                                                                                                            share|improve this answer












                                                                                                            share|improve this answer



                                                                                                            share|improve this answer










                                                                                                            answered Jan 7 '17 at 6:51









                                                                                                            TaraTara

                                                                                                            1,5651225




                                                                                                            1,5651225





















                                                                                                                0














                                                                                                                Had faced same issue ..



                                                                                                                well in my case i have saved




                                                                                                                google-services.json




                                                                                                                as




                                                                                                                google_services.json




                                                                                                                I tried every solution mentioned above but nothing helps...
                                                                                                                the error was instead of "_" you need to put "-"(dash).



                                                                                                                Just refactoring the file to google-services.json from google_services.json works like charm..



                                                                                                                Hope this helps!!!



                                                                                                                P.S. I know it's sound silly but this only works for me...






                                                                                                                share|improve this answer



























                                                                                                                  0














                                                                                                                  Had faced same issue ..



                                                                                                                  well in my case i have saved




                                                                                                                  google-services.json




                                                                                                                  as




                                                                                                                  google_services.json




                                                                                                                  I tried every solution mentioned above but nothing helps...
                                                                                                                  the error was instead of "_" you need to put "-"(dash).



                                                                                                                  Just refactoring the file to google-services.json from google_services.json works like charm..



                                                                                                                  Hope this helps!!!



                                                                                                                  P.S. I know it's sound silly but this only works for me...






                                                                                                                  share|improve this answer

























                                                                                                                    0












                                                                                                                    0








                                                                                                                    0







                                                                                                                    Had faced same issue ..



                                                                                                                    well in my case i have saved




                                                                                                                    google-services.json




                                                                                                                    as




                                                                                                                    google_services.json




                                                                                                                    I tried every solution mentioned above but nothing helps...
                                                                                                                    the error was instead of "_" you need to put "-"(dash).



                                                                                                                    Just refactoring the file to google-services.json from google_services.json works like charm..



                                                                                                                    Hope this helps!!!



                                                                                                                    P.S. I know it's sound silly but this only works for me...






                                                                                                                    share|improve this answer













                                                                                                                    Had faced same issue ..



                                                                                                                    well in my case i have saved




                                                                                                                    google-services.json




                                                                                                                    as




                                                                                                                    google_services.json




                                                                                                                    I tried every solution mentioned above but nothing helps...
                                                                                                                    the error was instead of "_" you need to put "-"(dash).



                                                                                                                    Just refactoring the file to google-services.json from google_services.json works like charm..



                                                                                                                    Hope this helps!!!



                                                                                                                    P.S. I know it's sound silly but this only works for me...







                                                                                                                    share|improve this answer












                                                                                                                    share|improve this answer



                                                                                                                    share|improve this answer










                                                                                                                    answered Mar 12 '17 at 11:52









                                                                                                                    PN10PN10

                                                                                                                    1,34531425




                                                                                                                    1,34531425





















                                                                                                                        0














                                                                                                                        Steps:



                                                                                                                        1. Navigate to your project folder and open the /app sub-folder.


                                                                                                                        2. Paste the .json file here.


                                                                                                                        3. Rebuild the project.






                                                                                                                        share|improve this answer



























                                                                                                                          0














                                                                                                                          Steps:



                                                                                                                          1. Navigate to your project folder and open the /app sub-folder.


                                                                                                                          2. Paste the .json file here.


                                                                                                                          3. Rebuild the project.






                                                                                                                          share|improve this answer

























                                                                                                                            0












                                                                                                                            0








                                                                                                                            0







                                                                                                                            Steps:



                                                                                                                            1. Navigate to your project folder and open the /app sub-folder.


                                                                                                                            2. Paste the .json file here.


                                                                                                                            3. Rebuild the project.






                                                                                                                            share|improve this answer













                                                                                                                            Steps:



                                                                                                                            1. Navigate to your project folder and open the /app sub-folder.


                                                                                                                            2. Paste the .json file here.


                                                                                                                            3. Rebuild the project.







                                                                                                                            share|improve this answer












                                                                                                                            share|improve this answer



                                                                                                                            share|improve this answer










                                                                                                                            answered Aug 2 '17 at 15:13









                                                                                                                            Saurabh SinghSaurabh Singh

                                                                                                                            839810




                                                                                                                            839810





















                                                                                                                                0














                                                                                                                                for people coming here from the firebase codelabs tutorial step 3:go to page 4.



                                                                                                                                Apparently, if google says You should now have the android-start project open in Android Studio. ,She means it,and not You should now have the android-start project open in Android Studio, without any build-errors .

                                                                                                                                As the instruction says there, you have to get a configuration file from firebase. i.e , create a new project in your firebase acc with name 'friendly chat and in the next page , add its package name and SHA1 KEY.

                                                                                                                                after downloading the json file,add it to your project>app folder, and Rebuild project.






                                                                                                                                share|improve this answer



























                                                                                                                                  0














                                                                                                                                  for people coming here from the firebase codelabs tutorial step 3:go to page 4.



                                                                                                                                  Apparently, if google says You should now have the android-start project open in Android Studio. ,She means it,and not You should now have the android-start project open in Android Studio, without any build-errors .

                                                                                                                                  As the instruction says there, you have to get a configuration file from firebase. i.e , create a new project in your firebase acc with name 'friendly chat and in the next page , add its package name and SHA1 KEY.

                                                                                                                                  after downloading the json file,add it to your project>app folder, and Rebuild project.






                                                                                                                                  share|improve this answer

























                                                                                                                                    0












                                                                                                                                    0








                                                                                                                                    0







                                                                                                                                    for people coming here from the firebase codelabs tutorial step 3:go to page 4.



                                                                                                                                    Apparently, if google says You should now have the android-start project open in Android Studio. ,She means it,and not You should now have the android-start project open in Android Studio, without any build-errors .

                                                                                                                                    As the instruction says there, you have to get a configuration file from firebase. i.e , create a new project in your firebase acc with name 'friendly chat and in the next page , add its package name and SHA1 KEY.

                                                                                                                                    after downloading the json file,add it to your project>app folder, and Rebuild project.






                                                                                                                                    share|improve this answer













                                                                                                                                    for people coming here from the firebase codelabs tutorial step 3:go to page 4.



                                                                                                                                    Apparently, if google says You should now have the android-start project open in Android Studio. ,She means it,and not You should now have the android-start project open in Android Studio, without any build-errors .

                                                                                                                                    As the instruction says there, you have to get a configuration file from firebase. i.e , create a new project in your firebase acc with name 'friendly chat and in the next page , add its package name and SHA1 KEY.

                                                                                                                                    after downloading the json file,add it to your project>app folder, and Rebuild project.







                                                                                                                                    share|improve this answer












                                                                                                                                    share|improve this answer



                                                                                                                                    share|improve this answer










                                                                                                                                    answered Nov 20 '17 at 15:47









                                                                                                                                    ansh sachdevaansh sachdeva

                                                                                                                                    74110




                                                                                                                                    74110





















                                                                                                                                        0














                                                                                                                                        https://developers.google.com/mobile/add



                                                                                                                                        select get started and go to settings logo and then project settings
                                                                                                                                        after that you will see below the platform like web,android,ios . select that according to your preference.
                                                                                                                                        and then download
                                                                                                                                        google-service.json file



                                                                                                                                        copy that file and paste it Into



                                                                                                                                        YourProjec/app Directory
                                                                                                                                        and then finally sync again .






                                                                                                                                        share|improve this answer



























                                                                                                                                          0














                                                                                                                                          https://developers.google.com/mobile/add



                                                                                                                                          select get started and go to settings logo and then project settings
                                                                                                                                          after that you will see below the platform like web,android,ios . select that according to your preference.
                                                                                                                                          and then download
                                                                                                                                          google-service.json file



                                                                                                                                          copy that file and paste it Into



                                                                                                                                          YourProjec/app Directory
                                                                                                                                          and then finally sync again .






                                                                                                                                          share|improve this answer

























                                                                                                                                            0












                                                                                                                                            0








                                                                                                                                            0







                                                                                                                                            https://developers.google.com/mobile/add



                                                                                                                                            select get started and go to settings logo and then project settings
                                                                                                                                            after that you will see below the platform like web,android,ios . select that according to your preference.
                                                                                                                                            and then download
                                                                                                                                            google-service.json file



                                                                                                                                            copy that file and paste it Into



                                                                                                                                            YourProjec/app Directory
                                                                                                                                            and then finally sync again .






                                                                                                                                            share|improve this answer













                                                                                                                                            https://developers.google.com/mobile/add



                                                                                                                                            select get started and go to settings logo and then project settings
                                                                                                                                            after that you will see below the platform like web,android,ios . select that according to your preference.
                                                                                                                                            and then download
                                                                                                                                            google-service.json file



                                                                                                                                            copy that file and paste it Into



                                                                                                                                            YourProjec/app Directory
                                                                                                                                            and then finally sync again .







                                                                                                                                            share|improve this answer












                                                                                                                                            share|improve this answer



                                                                                                                                            share|improve this answer










                                                                                                                                            answered Aug 19 '18 at 15:18









                                                                                                                                            arpit1714arpit1714

                                                                                                                                            12




                                                                                                                                            12





















                                                                                                                                                0














                                                                                                                                                If you don't need it anymore…



                                                                                                                                                …build.gradle:



                                                                                                                                                classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                ->



                                                                                                                                                // classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                …appbuild.gradle:



                                                                                                                                                apply plugin: 'com.google.gms.google-services'



                                                                                                                                                ->



                                                                                                                                                // apply plugin: 'com.google.gms.google-services'






                                                                                                                                                share|improve this answer



























                                                                                                                                                  0














                                                                                                                                                  If you don't need it anymore…



                                                                                                                                                  …build.gradle:



                                                                                                                                                  classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                  ->



                                                                                                                                                  // classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                  …appbuild.gradle:



                                                                                                                                                  apply plugin: 'com.google.gms.google-services'



                                                                                                                                                  ->



                                                                                                                                                  // apply plugin: 'com.google.gms.google-services'






                                                                                                                                                  share|improve this answer

























                                                                                                                                                    0












                                                                                                                                                    0








                                                                                                                                                    0







                                                                                                                                                    If you don't need it anymore…



                                                                                                                                                    …build.gradle:



                                                                                                                                                    classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                    ->



                                                                                                                                                    // classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                    …appbuild.gradle:



                                                                                                                                                    apply plugin: 'com.google.gms.google-services'



                                                                                                                                                    ->



                                                                                                                                                    // apply plugin: 'com.google.gms.google-services'






                                                                                                                                                    share|improve this answer













                                                                                                                                                    If you don't need it anymore…



                                                                                                                                                    …build.gradle:



                                                                                                                                                    classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                    ->



                                                                                                                                                    // classpath 'com.google.gms:google-services:3.2.0'



                                                                                                                                                    …appbuild.gradle:



                                                                                                                                                    apply plugin: 'com.google.gms.google-services'



                                                                                                                                                    ->



                                                                                                                                                    // apply plugin: 'com.google.gms.google-services'







                                                                                                                                                    share|improve this answer












                                                                                                                                                    share|improve this answer



                                                                                                                                                    share|improve this answer










                                                                                                                                                    answered Feb 15 at 5:08









                                                                                                                                                    user_MGUuser_MGU

                                                                                                                                                    26528




                                                                                                                                                    26528















                                                                                                                                                        protected by Community Sep 13 '18 at 12:18



                                                                                                                                                        Thank you for your interest in this question.
                                                                                                                                                        Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                                                                                                                                        Would you like to answer one of these unanswered questions instead?



                                                                                                                                                        Popular posts from this blog

                                                                                                                                                        𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

                                                                                                                                                        Crossroads (UK TV series)

                                                                                                                                                        ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế