I added Google Play Services to my Android project in Gradle dependencies.
dependencies {
compile 'com.google.android.gms:play-services:4.1.32'
}
The problem is that Android Studio does not recognize this dependency. I tried to synchronize the project with Gradle files, but the classes are still not found.
I can manually import some classes from Google Play Services and use them in my code, and it compiles without problems.
If I import a file jarfrom arr, which is loaded from maven, everything works fine.
I tried this with several libraries and it is always the same. I am using Android Studio 0.4.2.
source
share