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.
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]build.gradle.kts (:app)
// Add PJSIP dependencies
implementation(libs.pjsip.android)
[/code]
libs.versions.toml
[code]pjsipAndroid = "2.15"
[libraries]
pjsip-android = { module = "org.pjsip:pjsip-android", version.ref = "pjsipAndroid" }
[/code]
settings.gradle.kts
[code]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]
Fehlerdetails sind:
[code]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
[/code]
Ich habe versucht, verschiedene Repositorys für diese ungelöste Abhängigkeit hinzuzufügen, komme aber nicht durch.