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

3

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.

Vulcanism answered 23/8, 2016 at 4:49 Comment(3)
Use proper tag to get correct answer.Impeller
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.1Vulcanism
@Vulcanism - I am facing the same issue. Have you found the solution yet ?Lohrman
L
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.

Lohrman answered 19/9, 2016 at 18:15 Comment(0)
A
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/"
        }
    }
}
Anchorage answered 15/3, 2017 at 5:36 Comment(0)
C
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'
}
Contrabandist answered 15/11, 2016 at 10:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.