FlutLab has successfully updated the Java version to 17 (on Flutter 3.13). Due to this, you may have some errors in your old projects.
Question 1:
I am using Flutter 3.13. After running the Android build in FlutLab I get errors (view screenshot 1). What should I do?
Answer:
Open /android/gradle/wrapper/gradle-wrapper.properties and change
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
to
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
Run adroid build again.
Question 2:
I made changes to the gradle-wrapper.properties file but I get the error again (view screenshot 2). What should I do?
Answer:
Open /android/build.gradle find dependencies{} section and change
classpath 'com.android.tools.build:gradle:4.1.0'
to
classpath 'com.android.tools.build:gradle:7.0.0'
Run adroid build again.
#faq #flutlab_faq #i_need_help
show more

