一、Dart基础学习
二、环境配置
1.Java JDK,下载,安装,环境变量配置
下载 :https://www.oracle.com/java/technologies/downloads/#java8-windows(需要登录)
环境变量配置:
JAVA_HOME(java sdk 路径)
Path(;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin)
(cmd 输入 java 再输入 javac 有信息配置成功)
2.Android Studio
下载:https://developer.android.google.cn/studio
下载插件:
3.Flutter SDK(Git安装配置)
(1)Flutter SDK 下载:https://docs.flutter.dev/development/tools/sdk/releases?tab=windows#windows
Flutter SDK环境变量配置:
Path(flutter bin路径)
(cmd 输入 flutter --version有信息配置成功)
如果提示:Error: Unable to find git in your PATH,下载Git,配置环境变量
Git下载:https://git-scm.com/download/win
Git环境变量配置
(2)电脑上配置Flutter国内镜像:https://docs.flutter.dev/community/china
配置环境变量 :
PUB_HOSTED_URL=https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
(cmd 输入 flutter doctor 有信息配置成功)
(3)错误:
错误1:
SDK Manager
flutter doctor --android-licenses
所有输入Y
错误2:下载谷歌浏览器
错误3:Visual Studio not installed(开发window使用的软件的话需要处理)
下载Visual Studio:https://visualstudio.microsoft.com/downloads/
打开下载:
配置成功
网友评论