api.video-flutter-uploader icon indicating copy to clipboard operation
api.video-flutter-uploader copied to clipboard

[Bug]: 'lifecycle' hides member of supertype 'LifecycleOwner' and needs 'override' modifier

Open vincentderidder opened this issue 1 year ago • 5 comments

Version

1.2.3

Environment that reproduces the issue

Device: Pixel 6a (Android 14)

Is it reproducible in the example application?

Yes

Reproduction steps

Run the application in debug mode with target Android.

Expected result

The app runs successfully

Actual result

Build fails:

Launching lib/main.dart on Pixel 6a in debug mode...
e: file:///Users/vincentderidder/Documents/GitHub/api.video-flutter-uploader/android/src/main/kotlin/video/api/flutter/uploader/ProxyLifecycleProvider.kt:23:9 'lifecycle' hides member of supertype 'LifecycleOwner' and needs 'override' modifier
e: file:///Users/vincentderidder/Documents/GitHub/api.video-flutter-uploader/android/src/main/kotlin/video/api/flutter/uploader/ProxyLifecycleProvider.kt:75:5 'getLifecycle' overrides nothing

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':video_uploader:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more 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 45s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

Additional context

No response

Relevant logs output

Launching lib/main.dart on Pixel 6a in debug mode...
e: file:///Users/vincentderidder/Documents/GitHub/api.video-flutter-uploader/android/src/main/kotlin/video/api/flutter/uploader/ProxyLifecycleProvider.kt:23:9 'lifecycle' hides member of supertype 'LifecycleOwner' and needs 'override' modifier
e: file:///Users/vincentderidder/Documents/GitHub/api.video-flutter-uploader/android/src/main/kotlin/video/api/flutter/uploader/ProxyLifecycleProvider.kt:75:5 'getLifecycle' overrides nothing

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':video_uploader:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more 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 45s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

vincentderidder avatar Aug 07 '24 18:08 vincentderidder

Hi,

I don't really understand why CI and us don't reproduce this compilation issue. According to the logs, I made a fix. Could you try to build the example on the branch: https://github.com/apivideo/api.video-flutter-uploader/pull/21?

ThibaultBee avatar Aug 08 '24 08:08 ThibaultBee

Hi,

The example on branch #21 works as expected. Thank you!

vincentderidder avatar Aug 08 '24 09:08 vincentderidder

Any update on when this fix will be pushed as a new version of the package?

caleb654 avatar Aug 13 '24 15:08 caleb654

I am going to release the package right now.

ThibaultBee avatar Aug 13 '24 15:08 ThibaultBee

Done. @vincentderidder could you please close this issue as it is resolved now?

ThibaultBee avatar Aug 13 '24 16:08 ThibaultBee

I suppose this issue is resolved. Closing.

ThibaultBee avatar Oct 22 '24 09:10 ThibaultBee