2

I'm using an @aar dependency with transitive=true in build.gradle. It's downloaded to the gradle cache, but isn't resolved while the app is being compiled.

It may or may not be relevant, but I'm using it in a react-native app. The other dependencies in the build are compiled without a problem.

Does anyone have experience dealing with this type of issue?

frogatto
  • 28,539
  • 11
  • 83
  • 129
Isaac Madwed
  • 986
  • 9
  • 23

1 Answers1

0

I figured out that it was a react-native issue. If you are loading a @aar dependency in a package you also need to declare it as a repository in android/build.gradle in the block

allprojects {
  repositories {
    mavenLocal()
    jcenter()
    DESIRED_REMOTE_REPO_HERE
  }
}
Isaac Madwed
  • 986
  • 9
  • 23