chat-sdk / chat-sdk-android

Chat SDK Android - Open Source Mobile Messenger
https://chatsdk.co
Other
1.61k stars 611 forks source link

New repository (instead of JCenter) fails to provide all libraries for ChatSDK #704

Closed anonym24 closed 3 years ago

anonym24 commented 3 years ago

ChatSDK Version 5.2.10

So I use new a repo:

maven { url "https://chatsdk.jfrog.io/artifactory/release/chat-sdk-android" }

But still I can't compile my project:

image

Could not find sdk.chat:chat-kit:0.3.3b14. Required by: project :component_network > sdk.chat:ui:5.2.10 Could not find com.mikepenz:materialdrawer-iconics:8.0.0-a07. Required by: project :component_network > sdk.chat:mod-ui-extras:5.2.10 Could not find com.miguelcatalan:materialsearchview:1.4.0. Required by: project :component_network > sdk.chat:mod-ui-extras:5.2.10

anonym24 commented 3 years ago

Also in documentation you till have jcenter (it may worked for you because have cache on your local PC) at https://chat-sdk.gitbook.io/android/setup/add-chat-sdk-to-your-project:

image

But you should remove jcenter and do a clean build

bensmiley commented 3 years ago

JCenter is still available. It's just read-only.

JFrog, the company that maintains the JCenter artifact repository used by many Android projects, made JCenter a read-only repository on March 31st, 2021. According to the announcement, JCenter will allow downloads of existing artifacts indefinitely.

anonym24 commented 3 years ago

@bensmiley

from this your comment and email I solved it with:

allprojects {
    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" }
    }
}

Thanks!

rubensfelipe commented 8 months ago

tks, for me was missing the jcenter(), though he will be depricated in the future