zoho / react-native-zohodesk-portal-sdk

8 stars 4 forks source link

Can install dependencies #6

Closed jon-moreira closed 2 years ago

jon-moreira commented 2 years ago

After switch from 1.0.4 to 1.0.7 i get this error when i try to build the app on Android.

Could not determine the dependencies of task ':app:mergePlayAssets'.
> Could not resolve all task dependencies for configuration ':app:playRuntimeClasspath'.
   > Could not find com.zoho.messenger:wmslibrary:1.0.
     Searched in the following locations:
       - file:/{project_path}/node_modules/react-native/android/com/zoho/messenger/wmslibrary/1.0/wmslibrary-1.0.pom
       - file:/{project_path}/node_modules/jsc-android/dist/com/zoho/messenger/wmslibrary/1.0/wmslibrary-1.0.pom
       - https://repo.maven.apache.org/maven2/com/zoho/messenger/wmslibrary/1.0/wmslibrary-1.0.pom
       - https://dl.google.com/dl/android/maven2/com/zoho/messenger/wmslibrary/1.0/wmslibrary-1.0.pom
       - https://www.jitpack.io/com/zoho/messenger/wmslibrary/1.0/wmslibrary-1.0.pom
       - https://maven.zohodl.com/com/zoho/messenger/wmslibrary/1.0/wmslibrary-1.0.pom
     Required by:
         project :app > project :react-native-zohodesk-portal-sdk > com.zoho.desk:asapsdk:2.1.5 > com.zoho.desk:asap:2.1.5 > com.zoho.desk:asap-livechat:2.1.5
mohanrajds commented 2 years ago

@expouic open the Android folder of your React Native project in Android Studio and add the following Maven repository in the project level build.gradle file. maven { url "https://downloads.zohocdn.com/wmslibrary" }

jon-moreira commented 2 years ago

I'll try your suggestion, currently i'm using this:

// Zohodesk dependencies
maven { url 'https://maven.zohodl.com' }
mohanrajds commented 2 years ago

@expouic you have to use both

maven { url "https://downloads.zohocdn.com/wmslibrary" } maven { url 'https://maven.zohodl.com' }

jon-moreira commented 2 years ago

@mohanrajds works fine now with latest version. Thank you. Can you update the README.MD?