Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android-studio – 谷歌播放服务不是最新的大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图在我的 Android工作室应用程序中集成谷歌admob.我在日志中收到以下消息(我为格式化道歉,非常感谢任何帮助):

05-30 01:23:47.389 19555-19555/com.example.livingstonlabs.whatsbest I/Ads: StarTing ad request.
05-30 01:23:47.430 19555-25051/com.example.livingstonlabs.whatsbest W/GooglePlayservicesUtil: Google Play services out of date.  requires 9080000 but found 8489470
05-30 01:23:47.430 19555-25051/com.example.livingstonlabs.whatsbest W/Ads: Failed to connect to remote ad request service.
05-30 01:23:47.430 19555-25051/com.example.livingstonlabs.whatsbest W/Ads: Could not start the ad request service.
05-30 01:23:47.505 19555-19555/com.example.livingstonlabs.whatsbest W/GooglePlayservicesUtil: Google Play services out of date.  requires 9080000 but found 8489470

我假设我的谷歌播放服务由于某种原因过时但我不明白为什么会这样.我最后“应用插件:’com.google.gms.google-services’”.

的build.gradle(项目)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath 'com.google.gms:google-services:3.0.0'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


apply plugin: 'com.android.application'

****的build.gradle(模块:APp)****

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.example.livingstonlabs.whatsbest"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs',include: ['*.jar'])
    TESTCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.google.firebase:firebase-core:9.0.0'
    compile 'com.google.firebase:firebase-database:9.0.0'
    compile 'com.google.firebase:firebase-ads:9.0.0'
    compile 'com.google.android.gms:play-services:9.0.0'


}
apply plugin: 'com.google.gms.google-services'

解决方法

这意味着手机的Google Play安装速度低于您在清单中指定的版本.

您需要更新手机的Google Play服务.

大佬总结

以上是大佬教程为你收集整理的android-studio – 谷歌播放服务不是最新的全部内容,希望文章能够帮你解决android-studio – 谷歌播放服务不是最新的所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。