Could not resolve com.cometchat:pro-android-calls-sdk:2.0.2-beta1

Hi, I am a beginner in React Native. I have cloned this project and have followed all the steps mentioned in the Readme in the Github React native chat App.

Now when I run the project on a physical Android device using the command “npx react-native run-android” as written in the documentation I get the following error:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:cometchat-pro_react-native-calls:compileDebugAidl’.

Could not resolve all task dependencies for configuration ‘:cometchat-pro_react-native-calls:debugCompileClasspath’.
Could not resolve com.cometchat:pro-android-calls-sdk:2.0.2-beta1.
Required by:
project :cometchat-pro_react-native-calls
Could not resolve com.cometchat:pro-android-calls-sdk:2.0.2-beta1.
Could not get resource ““https://dl.bintray.com/cometchat/pro/com/cometchat/pro-android-calls-sdk/2.0.2-beta1/pro-android-calls-sdk-2.0.2-beta1.pom””
Could not GET “”“https://dl.bintray.com/cometchat/pro/com/cometchat/pro-android-calls-sdk/2.0.2-beta1/pro-android-calls-sdk-2.0.2-beta1.pom”"" Received status code 403 from server: Forbidden
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 5m 21s

This issue is mentioned for Android App but not for React Native. Please help me with what to do.

Hello @Shaheryar,

Please update the Chat & Calls SDK to the latest version in the package.json file. Below are the mentioned packages and their latest version.

"@cometchat-pro/react-native-chat": "2.3.2",
"@cometchat-pro/react-native-calls": "2.0.3-beta1"

Also, you need to update the maven URL in the project-level build gradle file from "https://dl.bintray.com/cometchat/pro" to "https://dl.cloudsmith.io/public/cometchat/cometchat-pro-android/maven/".

Warm Regards,

CometChat Pro
Mayur Bhandari

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.