Required Kotlin version

Summary

Context

Description of change

Migration guide

Timeline

References

Summary

To build a Flutter app for Android, Kotlin 1.5.31 or greater is required.

If your app uses a lower version,
you will receive the following error message:

Context

Flutter added support for foldable devices on Android.
This required adding an AndroidX dependency to the Flutter embedding that
requires apps to use Kotlin 1.5.31 or greater.

Description of change

A Flutter app compiled for Android now includes the Gradle dependency 
androidx.window:window-java.

Migration guide

Open <app-src>/android/build.gradle, and change ext.kotlin_version:

buildscript {