Install google_app_id without google_play_services.json or gradle

02-17 18: 16: 09.870: E / GMPM (12680): GoogleService failed to initialize, status: 10, Missing expected resource: "R.string.google_app_id" to initialize Google services. Possible reasons are missing the google-services.json or com.google.gms.google-services gradle plugin.

I am trying to delete this error log. I can find some tips to solve such problems using the google_play_services.json file , for example this link: Failed to initialize GoogleService

But my project does not use gradle, so I will add google_app_id to my strings.xml file. Now I am confused. What is google_app_id? Someone says that this is the project number, some say that this is the project identifier ... Even in google_play_services.json there are some properties with the name "project_id", "project_number", "mobilesdk_app_id", "client_id" and still not google_app_id properties

Is the unique value of each application in order? If so, it will work with the identifier or project number, but I'm not sure.

Thanks in advance.

+6
source share
1 answer

I found another solution, juste remove "google_app_id" from your string.xml file (this will avoid duplication)

0
source

All Articles