2

i have an application that collect the motiondata from (accelermeter and gyrscope sensors ) of the android phone and smartwatches at same time). i have problem , when i install the App on the phone i got this error

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.
 E/GMPM: Scheduler not set. Not logging error/warn.
 E/GMPM: Uploading is not possible. App measurement disabled

the App is designed to collect only five min of the user's motion data and then stop automatically and send the data from the watch to the phone.then finally the phone send the data to my email. howover , the current problem the app doesnt stop in the watch and didnt send the data to the phone . could i get anyhelp please ? with my respect.

Jim
  • 10,172
  • 1
  • 27
  • 36
neamah
  • 31
  • 1
  • 1
  • 2

2 Answers2

7

I have same issue , just add this to string.xml

  <string name="google_app_id">your app id</string>
Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156
1

You need to place the configuration file generated by this link

And then as quoted in step 3:

Copy the google-services.json file you just downloaded into the "app" directory of your Android