我正在尝试从Android Studio运行默认的Google MAps应用程序,我已经拥有了API密钥。问题是我收到了这个错误:
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.
01-27 18:58:26.980 16757-16757/elbauldelprogramador.com.gpsqr E/GMPM: Scheduler not set. Not logging error/warn.
01-27 18:58:26.990 16757-16788/elbauldelprogramador.com.gpsqr E/GMPM: Uploading is not possible. App measurement disabled
我已经检查了这个答案:GoogleService failed to initialize并将json放在app /中,但仍然无效。
事情是该应用程序在Sony Xperia Z1和Galaxy S II中正确运行。但在我的华为Honor 4x中无效。
有人对可能发生的事情有任何疑问吗?
答案 0 :(得分:0)
问题解决了,当设备通过USB连接时,SD卡正在卸载。如果我在没有插入usb的情况下启动应用程序,它可以完美运行。