cometchat / chat-sdk-android

Text Chat SDK for Android
https://www.cometchat.com
22 stars 12 forks source link

Could not run on android studio #38

Closed rolandgerges closed 2 years ago

rolandgerges commented 3 years ago

Trying to run this project on android studio and receiving the below error: Could not GET 'https://dl.bintray.com/cometchat/pro/com/cometchat/pro-android-chat-sdk/2.2.1/pro-android-chat-sdk-2.2.1.pom'. Received status code 403 from server: Forbidden Could not HEAD 'https://dl.bintray.com/cometchat/pro/com/cometchat/pro-android-calls-sdk/2.1.1/pro-android-calls-sdk-2.1.1.pom'. Received status code 403 from server: Forbidden


Build.gradle: dependencies { implementation 'com.cometchat:pro-android-chat-sdk:2.2.1' implementation 'com.cometchat:pro-android-calls-sdk:2.1.1' }

adityagokula2210 commented 3 years ago

Hello @rollyy Due to the shutdown of Bintray services, we had to move the Maven repository where the CometChat Android SDKs were hosted to a new one. Thus, the versions of the Android SDK below 2.3.0 are not available anymore. I would suggest you try using the latest version of the Android SDK (2.4.1). Also, you will need to change the URL of the maven repository in the project level Gradle file of your project from

https://dl.bintray.com/cometchat/pro

to

https://dl.cloudsmith.io/public/cometchat/cometchat-pro-android/maven/

Please do let us know if making the above changes solves the problem for you. In case you are still facing any issues please do let us know and we will be happy to help you out

Thanks