当前位置:网站首页>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
边栏推荐
- Opencv learning notes-day9 opencv's own color table operation (colormap coloraptypes enumeration data types and applycolormap() pseudo color function)
- [untitled]
- Opencv learning notes -day4 image pixel reading and writing operations (array traversal and pointer traversal implementation, uchar vec3b data type and mat class functions mat:: at(), mat:: ptr())
- Bottomsheetbehavior principle of realizing the home page effect of Gaode map
- Talk about the job experience of kotlin cooperation process
- Harmonyos actual combat - ten thousand words long article understanding service card development process
- [untitled]
- 127.0.0.1、0.0.0.0和localhost
- 证券开户的优惠怎样才能得到?在线开户安全?
- 酒精测试仪方案:酒精测试仪是根据什么原理测酒精溶度?
猜你喜欢
Introduction to the runner of mmcv
Metasploit practice - SSH brute force cracking process
Couldn't load this key (openssh ssh-2 private key (old PEM format))
[untitled]
Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
Mmdet line by line deltaxywhbboxcoder
[wechat applet] realize applet pull-down refresh and pull-up loading
Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function
Do you want the dialog box that pops up from the click?
100 lines of code and a voice conversation assistant
随机推荐
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Talk about the job experience of kotlin cooperation process
将线程绑定在某个具体的CPU逻辑内核上运行
Pytorch BERT
Flink Exception -- No ExecutorFactory found to execute the application
Flink sql -- No factory implements ‘org. apache. flink. table. delegation. ExecutorFactory‘.
Introduction to MySQL basics day4 power node [Lao Du] class notes
JVM tuning related commands and explanations
Find the number that appears only once in the array
Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)
Alcohol tester scheme: what principle does the alcohol tester measure alcohol solubility based on?
Comparaison de deux façons d'accéder à la base de données SQL Server (sqldatareader vs sqldataadapter)
[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.
Talk about how the kotlin collaboration process establishes structured concurrency
About MySQL Boolean and tinyint (1)
Talk about how the kotlin process started?
mysql基础入门 day4 动力节点[老杜]课堂笔记
Source code interpretation of detectron2 1--engine
Comparison of two ways for C to access SQL Server database (SqlDataReader vs SqlDataAdapter)
[wechat applet] realize applet pull-down refresh and pull-up loading