Is there a way to add a maven repository for the gradle build since apparently the repositories in the build.gradle file are being ignored.
I have a dependency to “anyline-ocr-react-native-module” in my project.json which has react native android and ios components. the android component has again a dependency to an external library in its build.gradle file which looks like this:
repositories {
flatDir {
dirs 'libs'
}
maven {
url 'https://anylinesdk.blob.core.windows.net/maven/'
}
}
Unfortunately, the build fails with the following message, so the repository is not being looked at:
* What went wrong:
Could not determine the dependencies of task ':app:collectReleaseDependencies'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not find io.anyline:anylinesdk:36.0.0.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
- file:/root/.m2/repository/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
- file:/home/gradle/builds/AdaloApp/node_modules/react-native/android/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
- file:/home/gradle/builds/AdaloApp/node_modules/jsc-android/dist/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
- https://dl.google.com/dl/android/maven2/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
- https://jcenter.bintray.com/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
- https://www.jitpack.io/io/anyline/anylinesdk/36.0.0/anylinesdk-36.0.0.pom
Required by:
project :app > project :anyline-ocr-react-native-module
thanks for your help