apivideo / api.video-flutter-live-stream

Flutter RTMP live stream client. Made with ♥ by api.video
MIT License
62 stars 37 forks source link

[Bug]: Tutorial not working on latest flutter stable version #52

Closed yieniggu closed 2 months ago

yieniggu commented 2 months ago

Version

v1.1.1

Which operating systems have you used?

Environment that reproduces the issue

Android 13, Xiaomi 10c

Is it reproducible in the example application?

Yes

RTMP Server

hasn't even come to that part

Reproduction steps

Just trying the example from https://api.video/blog/tutorials/build-your-flutter-live-streaming-application-with-api-video/

Expected result

Init the app

Actual result

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':apivideo_live_stream:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

Additional context

No response

Relevant logs output

No response

ThibaultBee commented 2 months ago

Hi,

Thanks for reporting this issue.

ThibaultBee commented 2 months ago

From what I see, it could be because Flutter project default Kotlin version is 1.7.10. In this case, in android/settings.gradle, replace in the plugins sections:

id "org.jetbrains.kotlin.android" version "1.7.10" apply false

by

id "org.jetbrains.kotlin.android" version "1.9.0" apply false
yieniggu commented 2 months ago

Thanks, that worked!