Flutter Flutter Docs Android¶ Changes in build.gradle in the android directory ext.kotlin_version = '1.8.10' and classpath 'com.android.tools.build:gradle:8.1.0' I also changed the gradle-wrapper.properties to version 8.1 I also manually set the JDK version to 17 (default 21) in gradle.properties org.gradle.java.home=/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form. Comments