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

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

Hey @TKOTC , since you have a lot of experience with component development, I wondered if you could help. have you run into such an issue as well?

thanks in advance

I am Steven McKeown on the component developer forums.

If you have a github repository for your Adalo component feel free to add @PragmaFlow to the repository and I can have a look, or send me the Android install script you have and I can see if I spot something there.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.