android-studiogradleandroid-gradle-pluginwebrtcwebrtc-android

How to fix "Failed to resolve: org.webrtc:google-webrtc"?


I build an android webrtc app but when adding webrtc to the android studio project (implementation 'org.webrtc:google-webrtc:1.0.+'), I get this error : Failed to resolve: org.webrtc:google-webrtc

How to add webrtc to an android app ?


Solution

  • Currently it seems we are forced to keep jcenter, a deprecated repository, to install this package. Jcenter remain readonly and is not removed for now.

    For production you could considere making your own build.

    // root build.gradle
    allprojects {
        repositories {
            jcenter()
    

    you can check this issue from twillio