Google Service cannot be initialized.

Asked 2 years ago, Updated 2 years ago, 127 views

I'm going to use Google Maps map on my application. I created a key and added a permission from the manifest, but when I run the app, I get this message from the debugger:

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.

I don't know what the problem is. There's no problem using it. I did this on my gradle file.

compile 'com.google.android.gms:play-services:8.4.0'

What's the problem? And how do I fix it?

android android-maps-v2 android-mapview google-maps

2022-09-22 21:28

1 Answers

You need to put the generated file in the configuration file through the link below. https://developers.google.com/mobile/add?platform=android&cntapi=signin&cntapp=Default%20Demo%20App&cntpkg=com.google.samples.quickstart.signin&cnturl=https:%2F%2Fdevelopers.google.com%2Fidentity%2Fsign-in%2Fandroid%2Fstart%3Fconfigured%3Dtrue&cntlbl=Continue%20with%20Try%20Sign-In

Then go to the link below and do as you wish. https://developers.google.com/identity/sign-in/android/start?hl=en

Third,

downloaded copies the files Android's directories or mobile and app json, google - services, please.


2022-09-22 21:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.