geweald / flutter_onfido

Flutter Onfido Plugin
MIT License
8 stars 20 forks source link

Kotlin plugin version too old. #22

Open heemoe opened 2 years ago

heemoe commented 2 years ago

Hi guys, My project updated to the latest version of Flutter, but got an error when build.

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin.                       │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then │
│ update /Users/trz/StudioProjects/my_project/android/build.gradle:                          │
│ ext.kotlin_version = '<latest-version>'                                                      │
└──────────────────────────────────────────────────────────────────────────────────────────────┘

flutter version:

Flutter 2.10.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7e9793dee1 (13 days ago) • 2022-03-02 11:23:12 -0600
Engine • revision bd539267b4
Tools • Dart 2.16.1 • DevTools 2.9.2
LeonardoRosaa commented 2 years ago

This warning happens because your project is not updated. Please, try update to fix that.

Please, let's me know if doesn't works or I'm wrong.

heemoe commented 2 years ago

This warning happens because your project is not updated. Please, try update to fix that.

Please, let's me know if doesn't works or I'm wrong.

Actually, Fixed by updating this repo's kotlin plugin version. ext.kotlin_version = '1.6.10' is working fine for me.

https://github.com/geweald/flutter_onfido/blob/310de6ffaf100124d1162d24a593626870f46aeb/android/build.gradle#L5

Nei1eveN commented 2 years ago

Any update on this? Can this be applied through a pull request?