I'm trying to get the Getting the Last Known Location tutorial from Android Developers to work and having a tough time of it.
If I follow the tutorial as linked above, everything works until I run the app, at which time I get the error:
02-29 15:25:00.542 14116-14116/local.test.t1 E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
Googling this, I find that I need to register with Google somehow (but not mentioned anywhere in Google's tutorial).
I eventually end up at Accessing Google APIs, a separate tutorial from Google where it says:
Note: Before making calls to specific Google services, you may first need to register your app in the Google Developer Console. For instructions, refer to the appropriate getting started guide for the API you're using, such as Google Drive or Google Sign-In.
but has no specific information for if I just want to use location services. I go there anyway and find I need to get a configuration file where I need to generate an SHA-1 which then points me to this link for generating it at which point I'm now stumped. It says:
To get the release certificate fingerprint:
keytool -exportcert -list -v \
-alias <your-key-name> -keystore <path-to-production-keystore>
What is this path-to-production-keystore
that I am supposed to point to? It gives no further information. It does give an actual command for a debug fingerprint but says I should get both release and debug.
Can someone please tell me if I'm going down the wrong rabbit hole, or if it is the right one, what is the proper next step?