2016-09-22 55 views
7

Google Playサービスに問題があります。私はoAuth2認証とカレンダー/ Gmail情報のためのGoogle APIを使用しています。昨日はうまくいっていましたが、今日、彼は私に、新しいバージョンのGoogle PLAYサービスが必要だと教えてくれます。 Android Studioは今朝パッケージを更新しました。私はGoogleAPIに連絡することを開始する場合はここでLogcatからのエラーラインは次のとおりです。ここでGoogle Playサービスの古くなったエラー

09-22 11:59:01.692: W/GooglePlayServicesUtil(2819): Google Play services out of date. Requires 9683000 but found 9452480 

は私grade.buildです:

apply plugin: 'com.android.application' 

android { 
    signingConfigs { 
     config { 
      keyAlias XXXXX 
      keyPassword XXXX 
      storeFile file(XXXX) 
      storePassword XXXXX 
     } 
    } 
    compileSdkVersion 23 
    buildToolsVersion '22.0.1' 
    defaultConfig { 
     applicationId XXXX 
     minSdkVersion 14 
     targetSdkVersion 22 
     signingConfig signingConfigs.config 
     vectorDrawables.useSupportLibrary = true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
      signingConfig signingConfigs.config 
     } 
     debug { 
      debuggable false 
      jniDebuggable false 
      signingConfig signingConfigs.config 
      renderscriptDebuggable false 
     } 
    } 
    productFlavors { 
    } 
} 








dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile('com.google.api-client:google-api-client-android:1.22.0') { 
     exclude group: 'org.apache.httpcomponents' 
    } 
    compile('com.google.apis:google-api-services-gmail:v1-rev48-1.22.0') { 
     exclude group: 'org.apache.httpcomponents' 
    } 
    compile('com.google.apis:google-api-services-calendar:v3-rev212-1.22.0') { 
     exclude group: 'org.apache.httpcomponents' 
    } 

    compile 'com.android.support:appcompat-v7:23.2.1' 
    compile 'com.google.firebase:firebase-crash:9.6.0' 
    compile 'joda-time:joda-time:2.4' 
    compile 'com.google.android.gms:play-services-auth:9.6.0' 
    compile 'pub.devrel:easypermissions:0.1.5' 
    compile 'com.android.support:support-v4:23.4.0' 
    compile 'com.android.support:support-vector-drawable:23.4.0' 
} 



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

私はいつもcom.google.android.gmsを使用しています: play-services-authバージョン9.6.0。私はどこにバージョンを変更することができません。

私は私のバージョン番号をトーストにしようと、それが持つ213XXXX私をgaves:

09-22 13:28:26.145: W/GooglePlayServicesUtil(3334): Google Play services out of date. Requires 9683000 but found 9452480 

多くのおかげで、 J:

int test = R.integer.google_play_services_version; 
     String test2 = test+""; 
     Toast.makeText(this,test2, Toast.LENGTH_SHORT).show(); 

しかし、エラーメッセージが私に異なるバージョン番号を示します。 Doe;)

答えて

0

Google Play Services out of date on API 23」というエラーに関する未解決の問題があると思います。SDKを18に更新すると、この種の問題が発生しました。この問題のlinkを確認してくださいそれについてもっと。

最新バージョンへの依存関係を更新することをお勧めしますか?更新後、アプリケーションをテストするときに新しい仮想デバイス/エミュレータを作成します。 APIのx86-64バージョン23を使用してください。

関連する問題