Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 980
user3386993 Avatar asked Aug 23 '16 04:08

user3386993


3 Answers

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.

like image 125
Name is Nilay Avatar answered Oct 21 '22 04:10

Name is Nilay


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/"
        }
    }
}
like image 23
Divyesh Murani Avatar answered Oct 21 '22 05:10

Divyesh Murani


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'
}
like image 1
cck Avatar answered Oct 21 '22 03:10

cck