Android emulator Android emulator已经过时了Google Play服务

Android emulator Android emulator已经过时了Google Play服务,android-emulator,google-play-services,Android Emulator,Google Play Services,Google Play服务的最新版本是9.2.0 然而Android emulator的Google Play服务只有9.0.80 因此,您无法在emulator上运行使用9.2.0编译的应用程序。例如,地图视图显示“此应用程序无法运行”。请更新Google Play服务“ 除了将应用程序依赖项更改为9.0.2之外的任何解决方法?将Google Play服务添加到您的项目中,为最新版本的Play Services添加依赖项 apply plugin: 'com.android.applicati

Google Play服务的最新版本是9.2.0 然而Android emulator的Google Play服务只有9.0.80

因此,您无法在emulator上运行使用9.2.0编译的应用程序。例如,地图视图显示“此应用程序无法运行”。请更新Google Play服务“


除了将应用程序依赖项更改为9.0.2之外的任何解决方法?

将Google Play服务添加到您的项目中,为最新版本的
Play Services添加
依赖项

apply plugin: 'com.android.application'
...

dependencies {
compile 'com.google.android.gms:play-services:9.2.0'
}
确保每次更新Google Play服务时都更新此版本号

如中所述,Google Play通过Google Play Store应用程序为Android 2.3及更高版本的用户提供服务更新。但是,更新可能不会立即送达所有用户,因此您的应用程序应在尝试执行API事务之前验证可用的版本


强烈建议您使用该类访问Google Play services功能。此方法允许您将
OnConnectionFailedListener
对象附加到客户端。若要检测设备是否具有适当版本的Google Play services APK,请实现
onConnectionFailed()
回调方法。如果由于缺少或过期的Google Play APK版本而导致连接失败,回调将收到一个错误代码,例如
SERVICE\u missing
,或。

我注意到我的“Google API英特尔x86 Atom系统映像”“API 23是第12版,更新为第14版,目前仍有9.0.80。我的猜测是,我们必须等待安装了9.2.0的新映像发布。我在emulator映像上找不到任何发行说明。如果新的图像与Google Play服务同时发布,那就太好了。Emulator图像今天已经收到更新。现在它有了google play services 9.2.56我使用的是X86_API23你把google play service库和模拟器上的google play services应用搞混了。关键是,如果添加依赖项9.2.0,模拟器将无法工作。