subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.16k stars 193 forks source link

How to set the kotlin version? #262

Closed mun9769 closed 4 months ago

mun9769 commented 6 months ago
flutter build apk

this command return the error.


┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin.                           │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then       │
│ update /home/runner/work/inhameal_flutter_project/inhameal_flutter_project/android/build.gradle: │
│ ext.kotlin_version = '<latest-version>'                                                          │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘

How to solve this?

tk-nguyen commented 5 months ago

Maybe your project need a newer Kotlin version? Default kotlin in ubuntu-latest runner is 1.9.21-release-633. You can use https://github.com/fwilhe2/setup-kotlin to install a specific version.