标题所说的几乎是。我正在尝试实现广告,但它不会显示。LogCat说广告甚至正在加载,它只是不会在屏幕上显示。我想我在SDK Manager中下载了所有内容,Gradle Play Services是7.0.0,模拟器具有X86 Google API为其运行 - 它可能是以其他方式需要更新的模拟器?...我只是不喜欢如果这是问题,知道如何修复模拟器。以下是遇到的错误。
W/GooglePlayServicesUtil﹕ Google Play services out of date. Requires 7095000 but found 6774470
您必须在设备上更新Google Play Services
。使用此代码提示用户他需要更新应用程序。
int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable( getApplicationContext() );
if(status == ConnectionResult.SUCCESS) {
//alarm to go and install Google Play Services
}else if(status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED){
Toast.makeText(context,"please udpate your google play service",Toast.LENGTH_SHORT).show
}
最简单的事情是:
1)安装基因仿真 a)使用此功能,https://www.genymotion.com/非常简单 b)进一步设置说明:http://tleyden.github.io/blog/2013/11/11/22/android-studio-plus-plus-genymotion-emulator/
2)将Google Play服务添加到Genimotion中。该线程在解释方面做得很好。