美文网首页
Flutter开发 Flutter搭建环境和IDE

Flutter开发 Flutter搭建环境和IDE

作者: 歐陽公子 | 来源:发表于2019-05-23 17:23 被阅读0次

    Flutter搭建

    Flutter中文网https://flutterchina.club/get-started/codelab/

    Flutter官方网https://flutter.dev/docs/get-started/install/macos

    1.完成iOS配置 配置简书https://www.jianshu.com/p/eb782589be82

    安装Brew  /usr/bin/ruby -e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"

    2.Android Studio官网https://blog.csdn.net/u010976213/article/details/80241900

    3.使用Flutter Doctor进行检测是否配置OK

    4.Android Studio 配置环境变量  https://www.cnblogs.com/quickcodes/p/5398709.html

    先进行

    touch .bash_profile指令

    open -e .bash_profile输入指令

    在bash_profile中写入所有路径

    export PATH=${PATH}:/Users/ouyangqin/Downloads/flutter/bin

      export ANDROID_HOME="/Users/ouyangqin/Library/Android/sdk"

      export PATH=${PATH}:${ANDROID_HOME}/tools

      export PATH=${PATH}:${ANDROID_HOME}/platform-tools

      export PUB_HOSTED_URL=https://pub.flutter-io.cn

      export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

    5.会出现问题

    Android Studio  -打开Android Studio -> Preference > Plugins

    有时候会搜索不到Android Studio  Flutter插件(极有可能出现的问题)

    将次选项关闭可以搜索到Flutter插件

    6.检测获取的结果

    相关文章

      网友评论

          本文标题:Flutter开发 Flutter搭建环境和IDE

          本文链接:https://www.haomeiwen.com/subject/bwmbzqtx.html