2016-09-22 21 views
7

google oyun hizmetinde bir sorunum var. OAuth2 Kimlik Doğrulaması ve Takvim/Gmail Bilgileri için Google API'sini kullanıyorum. Dün iyi çalıştı, ancak bugün bana daha yeni bir Google PLay Hizmeti Sürümüne ihtiyacım olduğunu söyledi. Android Studio bu sabah herhangi bir paketi güncellemişti. i GoogleAPI temasa başlarsanız İşte LogCat Hata-Line: Ben hep com.google.android.gms kullanıyorumGoogle Play Hizmeti güncel değil hatası

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' 

: Burada

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

benim grade.build geçerli: play-services-auth Sürüm 9.6.0. Versiyonu değiştirebileceğim yere gitmiyorum.

benim Sürüm numarasını kızartın çalıştı ve beni 213XXXX gaves: bana farklı sürüm numaraları gösterir

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

Ama Hata Mesajları:

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

çok teşekkür ederiz, j. Doe;)

cevap

0

"Google Play Services out of date on API 23" hatası aldığınız hatayla ilgili açık bir sorun olduğunu düşünüyorum. Ayrıca, bu tür bir sorun SDK'nızı 18 ile güncelleştirdiğinizde 2013'te ortaya çıktı. Yalnızca bu sorunun link numarasını kontrol edin. daha fazlası hakkında

En son sürüme bağımlılığınızı güncellemenizi önerebilirim. Güncelledikten sonra, uygulamayı test ederken yeni bir sanal cihaz/emülatör oluşturun. API 23'ün x86-64 sürümünü kullanmaya çalışın.

İlgili konular