Hey guys,
I'm developing the android application based on Xamarin.Forms that uses the webrtc libs.
I want to update webrtc libraries (currently I'm using m108 release version).
I don't have any issues with webrtc building (I'm using the depoot_tools to get repo and the python script from repo for building - ./tools_webrtc/android/build_aar.py). I'm building it by the Azure pipeline using Ubuntu20-04 with Java 11 by default.
Looks like the build of the m120 release uses java 17 - I see in some files the major version is 61 that's mapping to the java 17. For example, org/webrtc/RTCStatsCollectorCallback.class.
As result, I have the issues when I'm trying to use it in the Xamarin.Forms project (because currently Xamarin.Forms is limited to API 33 (Android 13, Java 11).
Example of the error:
## Error JAVAC0000: error: cannot access RTCStatsCollectorCallback
org.webrtc.RTCStatsCollectorCallback
bad class file: obj\Debug\130\lp\15\jl\bin\classes.jar(/org/webrtc/RTCStatsCollectorCallback.class)
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
Could you please help with clarification of this issue and advice how I can resolve this? I cannot use java 17 in my project, but I need to update webrtc libraries.
Thank you for any help!