iHealthDeviceLabs / iHealth-React-Native-SDK

3 stars 11 forks source link

ihealth_ihealthlibrary-react-native dependency error #2

Open dhawalsonawaneH opened 2 years ago

dhawalsonawaneH commented 2 years ago

I installed the iHealth library for react native. After installation, when I run my project on Android device, I get the following error:

* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find no.nordicsemi.android:dfu:1.6.1.
     Searched in the following locations:
       - file:/Users/Dhawal.Sonawane/Dev/Mobile/IHTest/node_modules/react-native/android/no/nordicsemi/android/dfu/1.6.1/dfu-1.6.1.pom
       - file:/Users/Dhawal.Sonawane/Dev/Mobile/IHTest/node_modules/jsc-android/dist/no/nordicsemi/android/dfu/1.6.1/dfu-1.6.1.pom
       - https://repo.maven.apache.org/maven2/no/nordicsemi/android/dfu/1.6.1/dfu-1.6.1.pom
       - https://dl.google.com/dl/android/maven2/no/nordicsemi/android/dfu/1.6.1/dfu-1.6.1.pom
       - https://www.jitpack.io/no/nordicsemi/android/dfu/1.6.1/dfu-1.6.1.pom
     Required by:
         project :app > project :ihealth_ihealthlibrary-react-native

My package versions: "@ihealth/ihealthlibrary-react-native": "^1.5.1", "react": "17.0.2", "react-native": "0.68.2"

dhawalsonawaneH commented 2 years ago

@Realank and @wushuang2012 Can you please help me resolve this issue. I am on a bit of a strict timeline here. Thank you.

ybardouski commented 2 years ago

@dhawalsonawaneH , Have you solved this issue?

ThunderDev1 commented 1 year ago

Having the same problem, as a temporary workaround, I modified the version in node_modules node_modules\@ihealth\ihealthlibrary-react-native\android\build.gradle set implementation 'no.nordicsemi.android:dfu:1.6.1' to implementation 'no.nordicsemi.android:dfu:1.11.1'