Maria
Maria

Reputation: 758

android Is support library v4 needed for google play services?

I know it has been asked before here but this is what android studio is complaining about:

enter image description here

I am sure I am not referencing the support library anywhere in the gradle builds, but android studio complains that it is needed for google play services.

EDIT:

dependencies {
    compile project(':comgizmogadgetsappzproductivity')
    compile 'com.google.android.gms:play-services-ads:+'
    compile files('libs/Parse-1.3.8.jar')
    compile files('libs/crashlytics.jar')
}

comgizmogadgetsappzproductivity has no dependency.

EDIT 2:

The thing is that I had the support library as a dependency earlier, but I removed it since I didn't need it anymore. From the build error I can see it says that "configuration:app:_debugCompile" needs it. Maybe I need to manually remove the support library from _debugCompile configuration? Is "_debugCompile" a file? I tried searching for it with find and grep in the project folder but didn't find anything.

Upvotes: 0

Views: 1683

Answers (1)

ianhanniballake
ianhanniballake

Reputation: 199920

Running gradlew :main:dependencies (where main is your module name) should show you something like:

+--- com.google.android.gms:play-services-ads:6.5.87
|    \--- com.google.android.gms:play-services-base:6.5.87
|         \--- com.android.support:support-v4:21.0.0 -> 21.0.3
|              \--- com.android.support:support-annotations:21.0.3

As of Google Play Services 6.5, the play-services-base library (a dependency for all Google Play Services) depends on the latest support library.

Ensure that your Support Library is available via the SDK manager: you'd want to make sure Android Support Library and Android Support Repository are both installed and up to date

Upvotes: 5

Related Questions