I created a react native library that internally used another android library com.github.okraHQ:okra-android-sdk:0.3-alpha
(a jitpack library), when I imported this library in my react native library > android > gradle it works fine. Note: this react-native-library works as a wrapper for com.github.okraHQ:okra-android-sdk:0.3-alpha
. A problem occurs when I use the react-native library (wrapper library) in another project, I am met with the error below:
Could not find com.github.okraHQ:okra-android-sdk:0.3-alpha.
Searched in the following locations:
file:/C:/Users/Java/AppData/Local/Android/Sdk/extras/m2repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
file:/C:/Users/Java/AppData/Local/Android/Sdk/extras/m2repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
file:/C:/Users/Java/AppData/Local/Android/Sdk/extras/google/m2repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
file:/C:/Users/Java/AppData/Local/Android/Sdk/extras/google/m2repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
file:/C:/Users/Java/AppData/Local/Android/Sdk/extras/android/m2repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
file:/C:/Users/Java/AppData/Local/Android/Sdk/extras/android/m2repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
file:/C:/Users/Java/.m2/repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
file:/C:/Users/Java/.m2/repository/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
https://dl.google.com/dl/android/maven2/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
https://dl.google.com/dl/android/maven2/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
https://jcenter.bintray.com/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
https://jcenter.bintray.com/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
file:/C:/Users/Java/Documents/CodeHub/ReactNative/original/node_modules/react-native/android/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.pom
file:/C:/Users/Java/Documents/CodeHub/ReactNative/original/node_modules/react-native/android/com/github/okraHQ/okra-android-sdk/0.3-alpha/okra-android-sdk-0.3-alpha.jar
Required by:
project :app > project :react-native-react-native-okra
From my understanding of this error, it seems like the Gradle is searching for this library in my local folder, jcenter and dl.google.com. but since it is hosted in jitpack there is no way in can be the ones listed before. Please, any suggestions on how I can solve this issue?