Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with integrating services : project can't find a specific version of android support library #45

Closed
Althas opened this issue Dec 5, 2014 · 2 comments

Comments

@Althas
Copy link

Althas commented Dec 5, 2014

Hi,

I am trying to integrate the Google Play Services with my project. I have added the play services as a dependency to my build.gradle, but when I try to rebuild the project I get this error:

Error:A problem occurred configuring project ':app'.
 > Could not resolve all dependencies for configuration ':app:_debugCompile'.
 > Could not find com.google.android.gms:play-services:4.3.23.
  Required by:
         myproject:app:unspecified > com.github.androidsocialnetworks:library:0.3.7

In app : build.graddle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "fr.istic.mmm.myplanner"
        minSdkVersion 19
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'io.realm:realm-android:0.74.0'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.1'
    compile 'com.squareup:android-times-square:1.4.1@aar'
    compile 'com.beardedhen:androidbootstrap:+'
    compile 'com.google.android.gms:play-services:4.3.23'
    compile('com.github.androidsocialnetworks:library:0.3.7@aar') {
        transitive = true
    }

}

Best regards,

@antonkrasov
Copy link
Owner

Hi,

Try this:

compile('com.github.androidsocialnetworks:library:0.3.7@aar') {
        transitive = true
        exclude group: 'com.google.android.gms'
    }

@Althas
Copy link
Author

Althas commented Dec 7, 2014

Thanks ! It works :)

I've been testing it successfully. It's pretty easy.

@Althas Althas closed this as completed Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants