23

I am following this manual and I am unsure where I should exactly copy the file google-services.json? There's many folders containing an app folder and I am trying to develop this for android wear. Any guide would be really great. So far I have put it here: enter image description here

Link to tutorial

Alex Bitek
  • 6,529
  • 5
  • 47
  • 77
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408

2 Answers2

32

Was configuring Firebase for android app and it gives good description on these. As the accepted answer says it should goes in app folder. Adding images for better understanding of place to put it in and configuration needed.

enter image description here

enter image description here

Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
7

I figured I copied it into the right folder. Here's the tutorial I found which helped me: enter image description here enter image description here

Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
  • Yes, that's correct. You need to put the google-services.json file in the app module inside your project. That file will be read by the com.google.gms.google-services Gradle plugin. – Alex Bitek Jul 03 '15 at 22:05
  • @MnemonicFlow what happens if we have prod/dev environments set up, and need to use different configuration files based on the `productFlavor`? – ZakTaccardi Jul 06 '15 at 20:09
  • 1
    @ZakTaccardi Unfortunately the plugin does not support such use cases yet. If you look at its source code from https://bintray.com/android/android-tools/com.google.gms.google-services/view#files by downloading the google-services-x.y.z-___-sources.jar , you'll see it only looks in the module's root folder for a file named google-services.json aka the directory from where you invoke the plugin with `apply plugin: 'com.google.gms.google-services'` – Alex Bitek Jul 06 '15 at 21:32
  • 1
    @MnemonicFlow all the plugin does is generate android resources, right? I am guessing those values can be overridden? My answer here is untested: http://stackoverflow.com/a/31255824/891242 – ZakTaccardi Jul 06 '15 at 21:35
  • @jalal Hello mam,any idea about aviary sdk ? – Ajay Pandya Oct 02 '15 at 09:26