surfstudio / flutter-otp-autofill

Made by Surf 🏄
Apache License 2.0
75 stars 43 forks source link

[BUG] can't run/build app with the latest gradle version #75

Closed aswindarma16 closed 3 months ago

aswindarma16 commented 5 months ago

Got this error when running the application with

compileSdkVersion 34 minSdkVersion 21

compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

kotlinOptions { jvmTarget = '1.8' }

ext.kotlin_version = '1.8.22' classpath 'com.android.tools.build:gradle:8.0.0'

What went wrong: Execution failed for task ':otp_autofill: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. Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

dipu0 commented 3 months ago

facing same problem! ;/