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 ?
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 ?
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
//In the settings.gradle file
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
//add jcenter()
jcenter()
}
}
Just take the step:
implementation 'org.webrtc:google-webrtc:1.0+'
and Replace in code:
implementation 'org.webrtc:google-webrtc:1.0.32006'
☻♥ Done Keep Code
I got issue like.
After of 4 hours struggle I Got the Solution :
Apply dependency changes like below.
from this : `
implementation 'org.webrtc:google-webrtc:1.0.+'
`
to This : `
implementation 'org.webrtc:google-webrtc:1.0.32006'
` ☻♥ Done Keep Code.
allprojects {
repositories {
..
maven { url "https://raw.githubusercontent.com/alexgreench/google-webrtc/master" }
}
}
dependencies {
..
implementation 'org.webrtc:google-webrtc:1.0.30039@aar'
}
Temporary solution :)
Try it with on maven central. I think this is the latest build based on the published date.
https://mvnrepository.com/artifact/org.webrtc/google-webrtc/1.0.32006
In app build.gradle:
implementation 'org.webrtc:google-webrtc:1.0.32006'
In project build.gradle:
repositories {
google()
mavenCentral()
}