Native component dependencies with gradle

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 ''

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:
       - 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
     Required by:
         project :app > project :anyline-ocr-react-native-module

thanks for your help

Any Help? @Colin @Victor

Hi @silentdrummer.

Sorry, I won’t be able to help here.
You can join Slack channel for Component Developers (@jessehaywood could you please advice what would be the best way to do this?)

Also, maybe some Component Developer can give an advice? @TKOTC @Michael @knight @James_App_Maker

Best regards, Victor.

1 Like

Just added you to the component developers Slack channel.

1 Like