CodePudding user response:
CodePudding user response:
Flutter on vscode without android studio
- all flutter doctor (✔) click
- and install java sdk 17
- gradle latest version install (ex.distributionUrl=https://services.gradle.org/distributions/gradle-7.4.1-all.zip)
- and gradle latest version plugin (https://developer.android.com/studio/releases/gradle-plugin#updating-gradle) change classpath 7.1.1 (go to your (flutter_project_folder)\android\build.gradle and change classpath 'com.android.tools.build:gradle:4.1.0' to classpath 'com.android.tools.build:gradle:7.1.1'
- finally try to run