Android Studio with Google Play: Google Play services is missing

做~自己de王妃 提交于 2019-11-30 19:00:44
stubgo

Got a solution. Had to do two things - set the Play Services version to lower: 5.0.89. The last version wasn't available for downloading from any (virtual) device I tested, required update.

Secondly, to install Google Play Services to Genymotion VM, followed instructions under this link: How to install Google Play Services in a Genymotion VM (with no drag and drop support)?.

Cheers.

Another solution is to change the target of your emulator to the Google API

To test your app when using the Google Play services SDK, you must use The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher. Source

Ojonugwa's solution is good but in addition there is an issue with the latest version of Google Play Services not being available on the emulator. However an appropriate version of Google Play Services is available on emulators running API version 21 or 19.

The current solution then is to create a new AVD with an API version of 21 or 19, and target Google APIs ( not Andriod x.x.x ). If you use a Google API AVD with API version 21 or 19 it should work as expected.

https://github.com/googlesamples/google-services/issues/32

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!