Record problems and solutions during flutter creation

Create the FLUTTER Project

C + S + p, enter "flutter" and select "flutter: New Project" to operate. Enter a project name, such as "flutter_myapp", then press Enter 3. Create or select a parent folder. 4. Wait until the project is createdCopy the code

Run flutter project

1. Open the Android emulator, click on the lower right corner of VScode 'No Device' and select an emulator (android Studio created) 2. Enter the flutter run commandCopy the code

Error message and resolution

1.Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done is stuck here, prompting it to take a long time to download. Solution: Modify the contents of the build.gradle file under the project folder 'Android' as follows:  -------------------------------------------------------------------------------------------------------------- Buildscript {ext.kotlin_version = '1.3.50' repositories {// Google () // jcenter() // / comment // new Maven {url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } } dependencies { classpath 'com. Android. Tools. Build: gradle: 3.5.0' classpath "org. Jetbrains. Kotlin: kotlin - gradle - plugin: $kotlin_version"}} Maven projects {repositories {// Google () // jcenter() // // new maven {url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } } } 2. A problem occurred evaluating project ':app'. > Failed to  apply plugin [id 'com.android.application'] > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory. Cause: The path of the project contains Chinese characters or other non-ASCII characters 3. If you start the FLUTTER project without opening the emulator, an error will be reported that the device could not be found.Copy the code

Start-up success

r Hot reload. R Hot restart. h Repeat this help message. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device). An Observatory debugger and profiler on The Android SDK built for x86 is available at: http://127.0.0.1:55908/xOX9KJhsdt8=/Copy the code