I have sort of inherited an old poorly maintained Android project and I tried to upgrade webrtc from 1.94.1-jitsi-9316999@aar to 111.0.6-jitsi-15437584@aar. Now I’m getting errors. Please note, I have little to no experience with Android/Java/Kotlin, so please accept stupid questions and expectations.
Expected Behavior:
A build works.
Observed Behavior: Note that I got past this one, but it’s background.
Could not determine the dependencies of task ':app:compileDebugKotlin'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.facebook.react:react-native:0.69.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://repo.maven.apache.org/maven2/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://jcenter.bintray.com/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://oss.sonatype.org/content/repositories/snapshots/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://jitpack.io/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/com/facebook/react/react-native/0.69/react-native-0.69.pom
Required by:
project :app > org.jitsi.react:jitsi-meet-sdk:4.1.0
> Could not find com.facebook.react:react-native:0.69.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://repo.maven.apache.org/maven2/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://jcenter.bintray.com/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://oss.sonatype.org/content/repositories/snapshots/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://jitpack.io/com/facebook/react/react-native/0.69/react-native-0.69.pom
- https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/com/facebook/react/react-native/0.69/react-native-0.69.pom
Required by:
project :app > project :webrtc-client > com.facebook.react:react-native-webrtc:111.0.6-jitsi-15437584
There are a whole bunch more errors, but I doubt that will help you.
Steps to reproduce the issue:
I simply changed my build.gradle with a different version:
implementation ‘com.facebook.react:react-native-webrtc:111.0.6-jitsi-15437584@aar’
Platform Information
- React Native Version:
- WebRTC Module Version:
- Platform OS + Version: Android
I note that the pom file for this build in maven refers to react-native 0.69, which doesn’t seem to exist. It should be 0.69.12 or some other specific version. Could that be because this project only specifies the implementation as “+” instead of a specific value, or at the least a thing with more parts?
Would it do me any good to explicitly declare my own dependency on 0.69.12? (Remember, I’m a newb, so be nice.) What would that look like?
OK, tried that for myself:
dependencies {
//api 'io.pristine:libjingle:11139@aar'
- implementation 'com.facebook.react:react-native-webrtc:1.94.1-jitsi-9316999@aar'
+ implementation 'com.facebook.react:react-native:0.69.12'
+ implementation 'com.facebook.react:react-native-webrtc:111.0.6-jitsi-15437584@aar'
}
That got rid of the first error, but now I appear to need to find a number of modules belonging to org.webrtc
such as AudioSource. It would seem that this is another package that was picked up directly by the old version of the react-native-webrtc package, and not the current one. What do I need in my build.gradle to get this? I found some source code, but it doesn’t make it clear what I need to list. Thanks.