Home > Net >  Flutter without Android Studio RUNning on vscode Error Flutter doctor all's good But run termin
Flutter without Android Studio RUNning on vscode Error Flutter doctor all's good But run termin

Time:03-17

no error on flutter doctor

But vscode terminal error

CodePudding user response:

E:\Web_Designing\Study_v3.2\flutter\demo\flutter_application_1\android\build.gradle and change classpath 'com.android.tools.build:gradle:4.1.0' to classpath 'com.android.tools.build:gradle:7.1.1'

CodePudding user response:

Flutter on vscode without android studio

  1. all flutter doctor (✔) click
  2. and install java sdk 17
  3. gradle latest version install (ex.distributionUrl=https://services.gradle.org/distributions/gradle-7.4.1-all.zip)
  4. 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'
  5. finally try to run
  • Related