Closed doctorpangloss closed 2 years ago
Hi, thanks for the report. I think you have a problem with the version(s) of the native library.
"dev.onvoid.webrtc:webrtc-java:0.7.0"
"dev.onvoid.webrtc:webrtc-java-windows-x86_64:0.1.0" << must be the same version as of webrtc-java
"dev.onvoid.webrtc:webrtc-java-macos-x86_64:0.1.0"
"dev.onvoid.webrtc:webrtc-java-linux-x86_64:0.1.0"
No other versions besides 0.1.0 exist on Maven and Jitpack.
Hi, thanks for the report. I think you have a problem with the version(s) of the native library.
"dev.onvoid.webrtc:webrtc-java:0.7.0" "dev.onvoid.webrtc:webrtc-java-windows-x86_64:0.1.0" << must be the same version as of webrtc-java "dev.onvoid.webrtc:webrtc-java-macos-x86_64:0.1.0" "dev.onvoid.webrtc:webrtc-java-linux-x86_64:0.1.0"
> Could not resolve all files for configuration ':my-project:testCompileClasspath'.
> Could not find dev.onvoid.webrtc:webrtc-java-windows-x86_64:0.7.0.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/dev/onvoid/webrtc/webrtc-java-windows-x86_64/0.7.0/webrtc-java-windows-x86_64-0.7.0.pom
- https://jitpack.io/dev/onvoid/webrtc/webrtc-java-windows-x86_64/0.7.0/webrtc-java-windows-x86_64-0.7.0.pom
Required by:
project :my-project
> Could not find dev.onvoid.webrtc:webrtc-java-macos-x86_64:0.7.0.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/dev/onvoid/webrtc/webrtc-java-macos-x86_64/0.7.0/webrtc-java-macos-x86_64-0.7.0.pom
- https://jitpack.io/dev/onvoid/webrtc/webrtc-java-macos-x86_64/0.7.0/webrtc-java-macos-x86_64-0.7.0.pom
Required by:
project :my-project
> Could not find dev.onvoid.webrtc:webrtc-java-linux-x86_64:0.7.0.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/dev/onvoid/webrtc/webrtc-java-linux-x86_64/0.7.0/webrtc-java-linux-x86_64-0.7.0.pom
- https://jitpack.io/dev/onvoid/webrtc/webrtc-java-linux-x86_64/0.7.0/webrtc-java-linux-x86_64-0.7.0.pom
Required by:
project :my-project
testImplementation "dev.onvoid.webrtc:webrtc-java:0.7.0"
testImplementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.7.0", classifier: "windows-x86_64"
testImplementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.7.0", classifier: "macos-x86_64"
testImplementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.7.0", classifier: "linux-x86_64"
works
Describe the bug Loading the native library throws a
NoSuchMethodError
.Accept this is a real exception. This is probably related to something being more strictly enforced in Java 17 (the version I'm using) or specifically GraalVM. But I think you will need to build the native artifacts anew.To Reproduce Steps to reproduce the behavior:
Add the following dependencies to your
build.gradle
Create a test of the form
var t = new PeerConnectionFactory()
.Observe no issues.
Change your dependencies to the following:
Run the test.
Observe the error:
Observe that
0.3.0
is the last version whereAudioSource
was a class and not an interface.Observe that all versions
0.4.0
through0.7.0
are affected.Expected behavior The latest version of the library should work with the native artifacts.
Desktop (please complete the following information):
Additional context