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.
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 buildscript
in 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.
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/"
}
}
}
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'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With