how to create flutter android project with build.gradle files after v. 3.32.7, enstead of *.gradle.kts files?

how to create flutter android project with build.gradle files after v. 3.32.7, enstead of *.gradle.kts files?
typescript
Ethan Jackson
  1. When created a new flutter android-studio project, it can happens that it failed, when selecting options generate .java files, or generates always .gradle.kts files, enstead of .gradle files.

  2. Same .gradle.kts files still generates by using flutter create command!

Answer

Solutions:

1. Install flutter fvm command tool and use it to create flutter project

2. By example flutter 3.32.7 project has always .gradle.tkts files with different configurations vs .gradle files

2.1 give command: fvm use 3.32.4

2.2 give command: fvm flutter create <name> etc to create .gradle files

2.3 You can upgrade run etc after screen descriptions

3. give comand: fvm use 3.32.7 (or latest)

4. Open android-sutdio etc

# /usr/bin/env sh

fvm flutter create --platforms=android --android-language=java --org=com.xxx $1

Related Articles