Too new android google play version

前端 未结 3 2170
死守一世寂寞
死守一世寂寞 2020-12-28 14:23

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



        
相关标签:
3条回答
  • 2020-12-28 14:44

    Use this setting in your app's build.gradle file:

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

    I found the solution posten on the XDA Developers forum: http://forum.xda-developers.com/coding/java-android/google-play-version-t2845409

    0 讨论(0)
  • 2020-12-28 14:44

    Maybe you have same problems with your libraries. You should use the lib that supports last GP version. Please type logs for details.Also try to compile 'com.android.support:appcompat-v7:20.0.+'

    0 讨论(0)
  • 2020-12-28 14:54

    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!

    0 讨论(0)
提交回复
热议问题