I have created an android application using Android Studio. I have this code in the manifest file:
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
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.+'
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!