简体   繁体   中英

Flutter without Android Studio RUNning on vscode Error Flutter doctor all's good But run terminal error

no error on flutter doctor

But vscode terminal error

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM