Software requirements:

1. The Flutter download address [https://flutter.io/docs/get-started/install]

2. Android Studio download address [http://www.android-studio.org]

3. The Android SDK – refer to address [https://blog.csdn.net/zeternityyt/article/details/79655150]

Operation steps:

1. Set the compiler


Pit filling records:

Problem: The plug-in download failed due to a Google issue in China

Solution:

Use the Blue light to set the agent (download the Blue light to view the advanced Settings Agent configuration information, and configure the relevant information in Android Studio)





2. Create projects

Start a new Android Studio project



Pit filling records:

Problem: Initializing gradle… Failure.

Solution: Modify the file configuration

File 1: Modify the fukflutter. Gradle comments Google () and jcenter() in the Flutter installation package to add the following 3 lines of code

* File location * : D: app\flutter\packages\ Flutter_tools \gradle

Related codes:

repositories {

//google()

//jcenter()

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' }

}

File 2: Modify build.gradle in the new project

* File location * : AndroidStudioProjects\ Flutter_app \ Android



3. Set up results