Amplitude-Flutter icon indicating copy to clipboard operation
Amplitude-Flutter copied to clipboard

Support Kotlin 1.8

Open ch-linhphan opened this issue 1 year ago • 5 comments

Summary

By upgrade the kotlin embedded version or increase android build gradle to 8.0, I got this build error

Execution failed for task ':amplitude_flutter:compileDebugKotlin'. 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.

Motivations

Latest release of some libaries (eg: Firebase, reCaptcha) required kotlin 1.8 version

ch-linhphan avatar Jan 22 '24 01:01 ch-linhphan

Same problem here @ch-linhphan if you found a solution please let met know.

QPAYRE avatar Feb 08 '24 18:02 QPAYRE

I have also encountered this issue and I don't have a solution yet

AlexPopaUpcode avatar Feb 13 '24 15:02 AlexPopaUpcode

This is blocking a prod release for us. Any updates?

AndreHaueisen avatar Feb 16 '24 15:02 AndreHaueisen

same problem here.. any update please?

marcuscorreasmash avatar Mar 03 '24 14:03 marcuscorreasmash

Same here

otopba avatar Jun 04 '24 08:06 otopba

Same Here...

gothedistance avatar Aug 27 '24 09:08 gothedistance

#202 should fix the issue.

Until it's merged (or the issue is otherwise fixed) and there's a new release, you can use this as a workaround

amplitude_flutter:
    git:
      url: https://github.com/putnokiabel/Amplitude-Flutter.git
      ref: jvm-target

putnokiabel avatar Aug 28 '24 17:08 putnokiabel