I am trying to create a Native Module (Android) for my React Native project. In order to do so I wanted to add a new dependency, namely TarsosDSP.
Following the docs I added this to my /android/build.gradle
repositories {
google()
maven { //
url = uri("https://mvn.0110.be/releases") // Added lines
} //
mavenCentral()
}
as well as this to my /android/app/build.gradle
dependencies {
...
implementation 'be.tarsos.dsp:core:2.5' // Added lines
implementation 'be.tarsos.dsp:jvm:2.5' //
}
Building the project it doesn't seem like fetching the lib, giving:
What I tried:
- Building the project with cleared cache
- Deleting all dependencies manually (.gradle file)
- Restarting PC / Android Studio
I was running into the same issue and I solved it by adding the specified maven repository to my settings.gradle file under dependencyResolutionManagement rather than as its own section in build.gradle.
Gradle Scripts/settings.gradle.kts
After doing this I selected File->Sync Project With Gradle Files and then Build->Make Project