当前位置:网站首页>Flutter 0001, environment configuration
Flutter 0001, environment configuration
2022-06-30 09:12:00 【Yuye IOS】
1.Flutter Mac End environment configuration
# Environment configuration #flutter #dart #vpn # Quick connect # plug-in unit #dart Unable to run
recommend vpn Use to download Quick connect vpn Free trial 3 God recommend ID 130935870
0. download flutter SDK、 and SDK Path to store
Open the root directory through the terminal
1. At the root Create a development Folder ( The name of the folder can be chosen at will )
2. take flutter sdk zip package Put it in development unpack

1. establish .bash_profile、.zshrc file
.bash_profile
# export PUB_HOSTED_URL=https://pub.flutter-io.cn // Domestic users need to set
# export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn // Domestic users need to set
export PATH=/Users/liyuhong/development/flutter/bin:$PATH
#dart
# export DART_HOME=/Users/liyuhong/development/flutter/bin/cache/dart-sdk/bin
# export PATH="${DART_HOME}:${PATH}"

.zshrc
# export PUB_HOSTED_URL=https://pub.flutter-io.cn // Domestic users need to set
# export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn // Domestic users need to set
export PATH=PATH_TO_FLUTTER_GIT_DIRECTORY/flutter/bin:$PATH
source ~/.bash_profile
2. Use terminal
source ~/.bash_profile
source ~/.zshrc
2.1cocoapods install
sudo gem install cocoapods

Android Studio install
2.2、cmdline-tools component is missing

2.3 、The operation couldn’t be completed. Unable to locate a Java Runtime. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
install Java

2.4、 to update sdk
/Users/liyuhong/Library/Android/sdk/tools/bin/sdkmanager --update

2.5、Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
flutter doctor --android-licenses
3. testing flutter Is the installation successful
flutter doctor -v

4.dart Add configuration cannot run
# [vscode Report errors /bin/sh: dart: command not found, Invalid add environment , How to solve ?](https://segmentfault.com/q/1010000039040294)
The plugin is recommended
边栏推荐
- Talk about the job experience of kotlin cooperation process
- c#获取当前的时间戳
- How can I get the discount for opening a securities account? Is online account opening safe?
- Application of hongruan face recognition
- Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
- RPC understanding
- [data analysis and display]
- Torchvision loads the weight of RESNET except the full connection layer
- Treatment process record of Union Medical College Hospital (Dongdan hospital area)
- CUDA realizes matrix multiplication
猜你喜欢

Pit encountered by fastjason

Deeply understand the working principle of kotlin collaboration suspend (beginners can also understand it)

Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function

Use Huawei performance management service to configure the sampling rate on demand

使用华为性能管理服务,按需配置采样率

Rew acoustic test (II): offline test

Installation, use and explanation of vulnerability scanning tool OpenVAS

Dart asynchronous task

Talk about the job experience of kotlin cooperation process

Occasionally, Flink data is overstocked, resulting in checkpoint failure
随机推荐
How can I get the discount for opening a securities account? Is online account opening safe?
Talk about writing
快应用中实现自定义抽屉组件
VIM from dislike to dependence (21) -- cross file search
Opencv learning notes -day 12 (ROI region extraction and inrange() function operation)
127.0.0.1, 0.0.0.0 and localhost
Rew acoustic test (VI): signal and measurement
Comparaison de deux façons d'accéder à la base de données SQL Server (sqldatareader vs sqldataadapter)
Esp32 (4): overview of the overall code architecture
Viteproject require Syntax Compatibility Problem Solving require is not defined
How to format an UTC date to use the Z (Zulu) zone designator in php?
C accesses mongodb and performs CRUD operations
Six implementation methods of singleton mode
Design specification for smart speakers v1.0
Flink 数据偶尔数据积压导致checkpoint失败
[cmake] make command cannot be executed normally
Icon resources
Deep understanding of continuation principle
Advanced technology management -- how managers design and build echelons
Raspberry pie 4B no screen installation system and networking using VNC wireless projection function