我有一个应用程序可以同时从 Android 手机和智能 watch 的(加速度计和陀螺仪传感器)收集运动数据)。我有问题,当我在手机上安装应用程序时出现此错误
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
该应用程序旨在仅收集用户五分钟的运动数据,然后自动停止并将数据从 watch 发送到手机。最后手机将数据发送到我的电子邮件。然而,目前的问题是应用程序不会在 watch 上停止,也不会将数据发送到手机。 我能得到任何帮助吗? 以我的敬意。
请您参考如下方法:
我有同样的问题,只需将其添加到 string.xml
<string name="google_app_id">your app id</string>


