Skip to main content

problem with flutter_webrtc

Created
Active
Viewed 108 times
0 replies
2

when i install dependency of flutter_webrtc this show me this error when i remove they run correctly

NB : I just install the dependency


Launching lib\main.dart on Android SDK built for x86 in debug mode...
C:\\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_webrtc-0.12.12+hotfix.1\android\src\main\java\com\cloudwebrtc\webrtc\SurfaceTextureRenderer.java:118: error: <anonymous com.cloudwebrtc.webrtc.SurfaceTextureRenderer$1> is not abstract and does not override abstract method onSurfaceCreated() in Callback
            new TextureRegistry.SurfaceProducer.Callback() {
                                                           ^
C:\Users\\Local\Pub\Cache\hosted\pub.dev\flutter_webrtc-0.12.12+hotfix.1\android\src\main\java\com\cloudwebrtc\webrtc\SurfaceTextureRenderer.java:119: error: method does not override or implement a method from a supertype
              @Override
              ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_webrtc:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
Error: Gradle task assembleDebug failed with exit code 1