Discord app targets API level 16, which does not support Java 8. Fortunately, with desugaring, we can still support API level 16, please see https://developer.android.com/studio/write/java8-support.html - however, external libraries already need to be desugared.
Java 8 is needed for building WebRTC 65. Instead of a single libwebrtc.jar
, the following files are generated (javap -verbose MyClass | grep "major"
):
Name | Version | Notes |
---|---|---|
libwebrtc.jar |
52 | ThreadUtils and Logging classes |
audio_device_java.interface.java |
52 | |
audio_device_java.jar |
51 | |
libjingle_peerconnection_java.interface.jar |
52 |