7

I was following the instruction given by quick blox as below:

Starting from sdk 2.6.1 to add dependency on particular module just add:

dependencies 
{

   compile("com.quickblox:quickblox-android-sdk-chat:2.6.1")

}

SDK module automatically includes transitive module dependencies.

But, I am unable to sync gradle file as it shows me the error:

Fail to resolve: com.quickblox:quickblox-android-sdk-chat:2.6.1

Please help me, I am unable to start quick blox with the latest version.

Steffen D. Sommer
  • 2,896
  • 2
  • 24
  • 47
user3386993
  • 93
  • 1
  • 3
  • Use proper tag to get correct answer. – Rahul Aug 23 '16 at 04:51
  • i added dependency [compile("com.quickblox:quickblox-android-sdk-chat:2.6.1") ] in grade file and then try to sync gradle file. But it does not sync and show me the message: Fail to resolve: com.quickblox:quickblox-android-sdk-chat:2.6.1 – user3386993 Aug 23 '16 at 06:59
  • @user3386993 - I am facing the same issue. Have you found the solution yet ? – Name is Nilay Sep 19 '16 at 16:10

3 Answers3

15

I was facing the same issue. But after searching the SO for a day I have managed to resolve it.

For me, coping the following line to allprojects in instead of buildscriptin gradle worked:

maven {
        url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
    }

Strangely, You have to include this reference at the app level (top level) build.gradle file.

Name is Nilay
  • 2,743
  • 4
  • 35
  • 77
5

sdk repository in your build.gradle file at the app level (top level)

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
        }
    }
}
Divyesh Murani
  • 361
  • 4
  • 8
1

correct solution: adding repositories to the same build.gradle file:

repositories {
    maven {
        url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
    }
}
dependencies {
    compile 'com.quickblox:quickblox-android-sdk-chat:2.6.1'
}
cck
  • 502
  • 4
  • 17