初次使用LiveKit Android SDK

4 阅读1分钟

Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for configuration ':app:debugRuntimeClasspath'.    > Could not find com.github.davidliu:audioswitch:89582c47c9a04c62f90aa5e57251af4800a62c9a.      Searched in the following locations:        - dl.google.com/dl/android/…        - repo.maven.apache.org/maven2/com/…      Required by:          project :app > io.livekit:livekit-android:2.23.3 Possible solution:  - Declare repository providing the artifact, see the documentation at docs.gradle.org/current/use…

解决报错信息:分析得出audioswitch这个库在Maven仓库找不到报错,解决方案,添加更多备选仓库

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        // 👇👇👇 必须添加这一行 👇👇👇
        maven("https://jitpack.io") 
    }
}