flutter-webrtc / flutter-webrtc

WebRTC plugin for Flutter Mobile/Desktop/Web
MIT License
4.14k stars 1.13k forks source link

[Android] cannot find symbol: CustomVideoEncoderFactory.java #1451

Open chrisflutterdev opened 1 year ago

chrisflutterdev commented 1 year ago

Describe the bug When updating the version to 0.9.43, and 0.9.44, we get the following error: .pub-cache/hosted/pub.dev/flutter_webrtc-0.9.45/android/src/main/java/org/webrtc/video/CustomVideoEncoderFactory.java:5: error: cannot find symbol import com.cloudwebrtc.webrtc.SimulcastVideoEncoderFactoryWrapper; ^ symbol: class SimulcastVideoEncoderFactoryWrapper location: package com.cloudwebrtc.webrtc .../.pub-cache/hosted/pub.dev/flutter_webrtc-0.9.45/android/src/main/java/org/webrtc/video/CustomVideoEncoderFactory.java:18: error: cannot find symbol private SimulcastVideoEncoderFactoryWrapper simulcastVideoEncoderFactoryWrapper; ^ symbol: class SimulcastVideoEncoderFactoryWrapper location: class CustomVideoEncoderFactory .../.pub-cache/hosted/pub.dev/flutter_webrtc-0.9.45/android/src/main/java/org/webrtc/video/CustomVideoEncoderFactory.java:27: error: cannot find symbol this.simulcastVideoEncoderFactoryWrapper = new SimulcastVideoEncoderFactoryWrapper(sharedContext, enableIntelVp8Encoder, enableH264HighProfile);

May be related to PR #1415 introducing CustomVideoEncoderFactory.java: https://github.com/flutter-webrtc/flutter-webrtc/pull/1415/files#diff-bbcc1f4ad87d4037b7c44b1913623ea9b8cffe5e56f9c17f8c28d49133dce7d0R72

To Reproduce Update version to 0.9.43 or 0.9.44

Expected behavior No build errors

Platform information

chrisflutterdev commented 1 year ago

Any updates please @cloudwebrtc ?

RtgrV commented 11 months ago

Found a solution for our project where if you set gradle to version 7.5 in the gradle-wrapper.properties of the Flutter Android application, it starts being able to build again. As gradle 7.5 supports Java version 18. Which seems to be used by this project.