Closed vivdub closed 2 years ago
Can you try with 5.4.2? As per:
https://chat-sdk.gitbook.io/android/setup/add-chat-sdk-to-your-project
Otherwise, can you try downloading this project:
https://github.com/chat-sdk/chat-sdk-android-example
And see if it compiles? It is using gradle. If it does compile, you can compare it to your project to see what the issue is.
Thanks for replying back. This complete github project does works.
When I use the independent projects in my own, locally, I still get some issues. The first issue that I am facing is :
Plugin [id: "com.jfrog.artifactory"] was not found in any of the following sources:
This is present in chat-sdk-core/build.gradle
I added:
maven { url "https://plugins.gradle.org/m2/" }
but it's of no use.
@vivdub I have verified the setup instructions and if they are followed correctly, they result in a project that does build. Since the Github project works, it looks like something in your Gradle setup is not correct.
Some points:
Make sure your allProjects
block in the project-level build.gralde looks like this:
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://chatsdk.jfrog.io/artifactory/release/chat-sdk-android" }
maven { url "https://chatsdk.jfrog.io/artifactory/release/chatkit" }
maven { url "https://chatsdk.jfrog.io/artifactory/release/matisse" }
maven { url "https://chatsdk.jfrog.io/artifactory/release/material-search-view" }
maven { url "https://chatsdk.jfrog.io/artifactory/release/android-image-cropper" }
}
}
I've updated the steps here:
https://chat-sdk.gitbook.io/android/setup/add-chat-sdk-to-your-project
Also updated the example project to use 5.4.2:
https://github.com/chat-sdk/chat-sdk-android-example
Given that as far as I can see, the instructions are correct and the example project works fine, I'm closing this issue. You need to just compare the example project to your project to see where the problem is. If you need further help, you would need to buy priority support so I could fix your project myself (given that I can't go any further helping you without seeing your code).
Seems to work. Thank you
While integration the SDK as per instructions provided it is not being able to resolve.
Below is the app, build.gradle
`plugins { id 'com.android.application' id 'kotlin-android' id 'com.google.gms.google-services' }
android { compileSdk 31
}
dependencies {
}`
Here is the project build.gradle
`buildscript { repositories { google() mavenCentral() jcenter() maven { url 'https://jitpack.io' } maven { url "https://chatsdk.jfrog.io/artifactory/release/chat-sdk-android" } maven { url "https://chatsdk.jfrog.io/artifactory/release/chatkit" } maven { url "https://chatsdk.jfrog.io/artifactory/release/matisse" } } dependencies { classpath "com.android.tools.build:gradle:7.0.4" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" classpath "com.google.gms:google-services:4.3.3"
}
task clean(type: Delete) { delete rootProject.buildDir } `
The error I get is:
Failed to resolve: sdk.chat:firestream-app:5.3.11 Failed to resolve: sdk.chat:firebase-app:5.3.11
I have tried with 5.3.17 version also.
Please help