简体   繁体   中英

Google play services are missing from your phone

我正在尝试从https://developer.android.com/training/location/retrieve-current.html编译éclipse上的示例代码,我安装了Google Play服务,请按以下步骤http://developer.android.com/google / play-services / setup.html#设置并收到以下错误:如果手机中缺少Google Play服务,此应用将无法运行。如何解决此问题?

In order to test Google Play Services on an emulator, I'd suggest doing the following:

  1. Obtain the Genymotion emulator (it has a free version). This emulator is way faster and easy to work with than the stock SDK one.
  2. Download a "Google apps' ( gapps ) package. Example sources: source1 , source2 .
  3. After installing the emulator, setting up a virtual device and starting it, simply drag-and-drop the gapps zip into the running device window. You will see a "Filte transfer in progress" dialog, followed by this dialog:

间隙安装确认对话框

Then you need to click OK , at which point you will get the following confirmation: 闪烁的成功对话框

Now just reboot the virtual device, and you'll have gapps installed. Also note that you need to enable the GPS once the virtual device has booted, using the button on the right of the interface: Genymotion中的GPS按钮

This procedure will get you very close to a real device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM