Ungelöste Abhängigkeit libs.pjsip.android
Posted: 13 Jan 2025, 20:08
Ich entwickle eine einfache SIP-Client-App, um Anrufe über den SIP-Server zu tätigen oder zu empfangen, wofür ich eine Bibliothek libs.pjsip.android verwendet habe. Ich habe keine Ahnung, wie ich das lösen kann. Vieles versucht, aber kein Erfolg. Ich bin Webentwickler und habe gerade angefangen, auf Android zu lernen und zu entwickeln. Bitte helfen Sie mir dabei.
Code:
libs.versions.toml
settings.gradle.kts
Fehlerdetails sind:
Ich habe versucht, verschiedene Repositorys für diese ungelöste Abhängigkeit hinzuzufügen, komme aber nicht durch.
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