Code:
Code: Select all
build.gradle.kts (:app)
// Add PJSIP dependencies
implementation(libs.pjsip.android)
Code: Select all
pjsipAndroid = "2.15"
[libraries]
pjsip-android = { module = "org.pjsip:pjsip-android", version.ref = "pjsipAndroid" }
Code: Select all
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url=uri("https://jitpack.io") }
maven {url = uri("https://raw.githubusercontent.com/sinch/pjsip-android/master/repository")}
mavenCentral {
content {
includeModule("org.jetbrains.kotlinx", "kotlinx-coroutines-android:2.0.0")
}
}
}
}
Code: Select all
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find org.pjsip:pjsip-android:2.15.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/pjsip/pjsip-android/2.15/pjsip-android-2.15.pom
- https://repo.maven.apache.org/maven2/org/pjsip/pjsip-android/2.15/pjsip-android-2.15.pom
- https://jitpack.io/org/pjsip/pjsip-android/2.15/pjsip-android-2.15.pom
- https://raw.githubusercontent.com/sinch/pjsip-android/master/repository/org/pjsip/pjsip-android/2.15/pjsip-android-2.15.pom
Required by:
project :app