Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Too new android google play version

I have created an android application using Android Studio. I have this code in the manifest file:

<meta-data android:name="com.google.android.gms.version"      android:value="@integer/google_play_services_version"/> 

and the value for @integer/google_play_services_version is 520800 (value added automatically when I linked the Google play library. No hardcode there).

This is the link between the library and the project

dependencies {   compile fileTree(include: ['*.jar'], dir: 'libs')   compile 'com.android.support:appcompat-v7:19.+'   compile 'com.google.android.gms:play-services:+' } 

also auto generated when I have added the Google play library from the menu.

The application works fine, bun when I generate a signed APK and try to upload it to the Google market it gives me an error saying that I am trying to upload an APK which uses google play version 5208000 and I should use version 5100000 or lower.

I have tryed to google_play_services_version into 5100000 but then the application stops working from the beginning.

How should I make my app runnable and valid for uploading on the market?

like image 288
Jaws Avatar asked Aug 12 '14 07:08

Jaws


People also ask

Why does Google Play show older versions?

This is some caching issue with Play store app. Solution: The solution is for the user to force stop the play store app and open it again. If that doesn't work, clear play store app data/cache and open it again.


1 Answers

The problem is with this instruction:

  compile 'com.google.android.gms:play-services:+' 

the play-services:+ means that it will pack the very latest play-services version. The problem is that the very latest play-services version available on the development environment is not yet fully published worldwide by Google, therefore not yet available to be used in official builds. So you have to use a version that it is indicating or lower..like this one: play-services:5.0.89.

So this one will work:

  compile 'com.google.android.gms:play-services:5.0.89' 

To find a list of available version, take a look at this folder in your SDK: extras/google/m2repository/com/google/android/gms/play-services/

Good luck!

like image 146
Alécio Carvalho Avatar answered Oct 05 '22 13:10

Alécio Carvalho