Android project compiles, but maven dependencies are not recognized in Android Studio

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.

+4
source share
3

,

Android Studio

.idea .iml .

+6

, . SDK, , Google Play.

enter image description here

Google Play, Google Play, Google Repository. , . Android .

+8

, Android Studio. , classes.jar . build/exploded-bundles .

0
source

All Articles