Skip to content Skip to sidebar Skip to footer

Gradle @aar Dependency Resolution In React-native Project

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

Solution 1:

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

Post a Comment for "Gradle @aar Dependency Resolution In React-native Project"