Ungelöste Abhängigkeit libs.pjsip.android

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Ungelöste Abhängigkeit libs.pjsip.android

by Guest » 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:

Code: Select all

build.gradle.kts (:app)
// Add PJSIP dependencies
implementation(libs.pjsip.android)
libs.versions.toml

Code: Select all

pjsipAndroid = "2.15"
[libraries]
pjsip-android = { module = "org.pjsip:pjsip-android", version.ref = "pjsipAndroid" }

settings.gradle.kts

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")
}
}
}
}
Fehlerdetails sind:

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

Ich habe versucht, verschiedene Repositorys für diese ungelöste Abhängigkeit hinzuzufügen, komme aber nicht durch.

Top