MacOS Catalina上的颤振安装

2024-03-03 09:59
文章标签 安装 macos catalina 颤振

本文主要是介绍MacOS Catalina上的颤振安装,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

System Requirements:Operating Systems: macOS (64-bit)Disk Space: 2.8 GB (does not include disk space for IDE/tools).Tools: bash, curl, git 2.x, mkdir, rm, unzip, which, zip

系统需求:作业系统:macOS(64位元)磁碟空间:2.8 GB(不包含IDE /工具的磁碟空间)工具:bash,curl,git 2.x,mkdir,rm,解压缩,其中,zip

download Flutter from https://flutter.dev/docs/get-started/install/macos

从https://flutter.dev/docs/get-started/install/macos下载Flutter

Image for post
https://flutter.dev/docs/get-started/install/macos https://flutter.dev/docs/get-started/install/macos
Image for post
download flutter
下载扑

Unzip the folder

解压缩文件夹

for the following steps please turn on the path bar ( finder->view-> show path bar/ option+ cmd+p)

对于以下步骤,请打开路径栏(finder-> view-> show path bar / option + cmd + p )

Image for post
double click on the zip file to unzip
双击压缩文件以解压缩

go to Users/YourUsername and create a new folder called “Dev” for example

转到Users / YourUsername并创建一个名为“ Dev”的新文件夹

Image for post

copy the unzipped Flutter folder to the new “Dev” folder

将解压缩的Flutter文件夹复制到新的“ Dev”文件夹

Image for post

open Spotlight (cmd+ spacebar) and search “terminal”,click enter to open it

打开Spotlight( cmd +空格键 )并搜索“终端”,单击Enter将其打开

Image for post

open the terminal and go to the preferences cmd+ ,change Shells open with to /bin/zshI use the Homebrew profile, to have a better contrast

打开终端并转到首选项cmd +,将Shells open with更改为/ bin / zsh我使用Homebrew配置文件,以获得更好的对比度

Image for post
hit enter
点击进入

open the terminal, type: vim~/ .zshrc (enter)

打开终端,输入: vim〜/ .zshrc(输入)

Image for post

open the flutter website, and copy the following line: export PATH=”$PATH[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin”

打开flutter网站,然后复制以下行: export PATH =“ $ PATH [PATH_TO_FLUTTER_GIT_DIRECTORY] / flutter / bin”

Image for post

Open the terminal window and type “i” to edit and insert a new linedelete everything in […..] -> export PATH=”$PATH: …/flutter/bin

打开终端窗口,输入“ i”以编辑并插入新行,删除[…..]-> export PATH =“ $ PATH:…/ flutter / bin ”中的所有内容

Image for post

we have extracted the flutter folder into the Users/Username/Dev folder beforenow open the terminal and point to the flutter/bin folder -> $Home/Dev/flutter/bin

我们先将flutter文件夹解压缩到Users / Username / Dev文件夹中,然后再打开终端并指向flutter / bin文件夹-> $ Home / Dev / flutter / bin

Image for post

hit the Esc key, and type: wq!

Esc键 ,然后键入:wq!

Image for post

close the current terminal window, and create a new one (cmd+n)run flutter — version, to check if flutter is installed

关闭当前的终端窗口,并创建一个新的( cmd + n )运行flutter — version ,以检查是否已安装flutter

Image for post
Image for post

now download Android Studio from https://developer.android.com/studio and install the dmg

现在从https://developer.android.com/studio下载Android Studio并安装dmg

Image for post
Image for post

now run Android Studio ( standard setup)

现在运行Android Studio(标准设置)

Image for post

after installation, click on the configure button and open the Preferences

安装后,单击配置按钮并打开首选项

Image for post

Go to Plugins and install the Flutter Plugin

转到插件并安装Flutter插件

Image for post

I changed the font size (Font) so that the code will be more readable and also the theme to Darcula

我更改了字体大小( Font ),以使代码更具可读性,并且使Darcula的主题更清晰

Image for post

IMPORTANT STEP:Go to System Settings-> Android SDK -> SDK Tools and UNCHECK “HIDE OBSOLETE PACKAGES”Install the Android SDK Tools (Obsolete)

重要步骤:转到系统设置-> Android SDK-> SDK工具,然后取消选中“隐藏过时的软件包”安装Android SDK工具(已淘汰)

Image for post

restart Android Studio and start new Flutter project

重新启动Android Studio并启动新的Flutter项目

Image for post

choose Flutter Application

选择Flutter应用程序

Image for post

check if the Flutter SDK path is correct

检查Flutter SDK路径是否正确

Image for post
Image for post

click on finish and run the AVD Manager -> Tools/AVD Manager

单击完成并运行AVD Manager->工具/ AVD Manager

Image for post

Create a new device

创建一个新设备

Image for post
Image for post

Select an Android Version and download it

选择一个Android版本并下载

Image for post
Image for post

Run your virtual device with the triangle button under Actions

使用“操作”下的三角形按钮运行虚拟设备

Image for post

good job! we are done with the android part, go to Android Studio and run the program (^R)

做得好! 我们已经完成了android部分,转到Android Studio并运行程序(^ R)

Image for post
Image for post

Install Xcode and run it afterwards at least one time ( Appstore)

安装Xcode并随后至少运行一次(Appstore)

Image for post

create a new terminal and insert following lines:sudo xcode-select — switch/Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch

创建一个新终端并插入以下行: sudo xcode-select —开关/Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch

Image for post

you might need to install cocoapods: $ sudo gem install cocoapods

您可能需要安装cocoapods: $ sudo gem install cocoapods

Image for post

open the ios simulator with the terminal, type :open -a Simulator

使用终端打开ios模拟器,输入:open -a Simulator

Image for post

run the simulator and start the application in Android Studio

运行模拟器并在Android Studio中启动应用程序

Image for post

if you want you can install Flutter in VSCode

如果您愿意,可以在VSCode中安装Flutter

Image for post

now open the terminal and run flutter doctor -v to if everything works fine

现在打开终端并运行flutter doctor -v到一切正常

Image for post

故障排除 (Trouble shooting)

  • you might need to accept the android licenses :

    您可能需要接受android许可证:

    you might need to accept the android licenses : flutter doctor — android-licenses

    您可能需要接受android许可证: flutter doctor — android-licenses

Image for post

谢谢阅读, (Thanks for reading,)

https://github.com/congnguyendinh0

https://github.com/congnguyendinh0

https://www.linkedin.com/in/congnguyendinh0/

https://www.linkedin.com/in/congnguyendinh0/

翻译自: https://medium.com/swlh/flutter-installation-on-macos-catalina-dfcbbbec09c9


http://www.taodudu.cc/news/show-8479342.html

相关文章:

  • 颤振稳定性叶瓣图_使用块阵模式进行颤振场验证
  • 机械工程学报-封面研究-基于自适应变分模态分解与功率谱熵差的机器人铣削加工颤振类型辨识
  • 颤振稳定性叶瓣图_在屏幕之间导航—颤振
  • 使用人工智能自动测试颤振应用程序
  • 颤振稳定性叶瓣图_颤振异步redux graphql
  • matlab动力学共振颤振研究
  • 颤振稳定性叶瓣图_颤振主题系统
  • 颤振稳定性叶瓣图_颤振性能优化
  • 双路颤振频率Hz可设置比例阀放大器
  • 深度聚类paper汇总
  • paperwithcode
  • AAAI2021 accepted paper list
  • 使用Tex 撰写paper-TexStudio设置默认字体样式大小等
  • Raphael学习之Paper常用API(四)
  • 如何写paper
  • Paper:txyz_ai(一款帮助科研人员阅读PDF论文ChatGPT利器)的简介、安装、使用方法之详细攻略
  • 抑郁症康复日记
  • 计算机抑郁症与干涉相关的,抑郁症
  • matlab 自带的数据集fisheriris
  • 【文末福利】为什么我们要掌握Linux系统编程?
  • 什么是TCP的混合型自时钟
  • 炮打洋鬼子创作总结
  • oracle 过滤字段中的中文,不再洋不洋土不土
  • field list什么意思_闲话Python之range()到底是个什么玩意儿
  • AI全栈大模型工程师(二十二)什么是模型训练
  • 什么是mysql锁_简单理解MySQL锁
  • 什么是MAS : 一种目标管理工具和方法
  • 什么是接口API
  • python函数一般不能_Python程序中对一个函数的调用不能出现在该函数的定义之前...
  • 打字练习软件 Type Fu mac中文版技能介绍
  • 这篇关于MacOS Catalina上的颤振安装的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



    http://www.chinasem.cn/article/769267

    相关文章

    Win安装MySQL8全过程

    《Win安装MySQL8全过程》:本文主要介绍Win安装MySQL8全过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Win安装mysql81、下载MySQL2、解压文件3、新建文件夹data,用于保存数据库数据文件4、在mysql根目录下新建文件my.ini

    最详细安装 PostgreSQL方法及常见问题解决

    《最详细安装PostgreSQL方法及常见问题解决》:本文主要介绍最详细安装PostgreSQL方法及常见问题解决,介绍了在Windows系统上安装PostgreSQL及Linux系统上安装Po... 目录一、在 Windows 系统上安装 PostgreSQL1. 下载 PostgreSQL 安装包2.

    Maven如何手动安装依赖到本地仓库

    《Maven如何手动安装依赖到本地仓库》:本文主要介绍Maven如何手动安装依赖到本地仓库问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、下载依赖二、安装 JAR 文件到本地仓库三、验证安装四、在项目中使用该依赖1、注意事项2、额外提示总结一、下载依赖登

    如何在Mac上安装并配置JDK环境变量详细步骤

    《如何在Mac上安装并配置JDK环境变量详细步骤》:本文主要介绍如何在Mac上安装并配置JDK环境变量详细步骤,包括下载JDK、安装JDK、配置环境变量、验证JDK配置以及可选地设置PowerSh... 目录步骤 1:下载JDK步骤 2:安装JDK步骤 3:配置环境变量1. 编辑~/.zshrc(对于zsh

    如何在pycharm安装torch包

    《如何在pycharm安装torch包》:本文主要介绍如何在pycharm安装torch包方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录在pycharm安装torch包适http://www.chinasem.cn配于我电脑的指令为适用的torch包为总结在p

    在PyCharm中安装PyTorch、torchvision和OpenCV详解

    《在PyCharm中安装PyTorch、torchvision和OpenCV详解》:本文主要介绍在PyCharm中安装PyTorch、torchvision和OpenCV方式,具有很好的参考价值,... 目录PyCharm安装PyTorch、torchvision和OpenCV安装python安装PyTor

    Python Transformer 库安装配置及使用方法

    《PythonTransformer库安装配置及使用方法》HuggingFaceTransformers是自然语言处理(NLP)领域最流行的开源库之一,支持基于Transformer架构的预训练模... 目录python 中的 Transformer 库及使用方法一、库的概述二、安装与配置三、基础使用:Pi

    如何解决mmcv无法安装或安装之后报错问题

    《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.

    Python 安装和配置flask, flask_cors的图文教程

    《Python安装和配置flask,flask_cors的图文教程》:本文主要介绍Python安装和配置flask,flask_cors的图文教程,本文通过图文并茂的形式给大家介绍的非常详细,... 目录一.python安装:二,配置环境变量,三:检查Python安装和环境变量,四:安装flask和flas

    Win11安装PostgreSQL数据库的两种方式详细步骤

    《Win11安装PostgreSQL数据库的两种方式详细步骤》PostgreSQL是备受业界青睐的关系型数据库,尤其是在地理空间和移动领域,:本文主要介绍Win11安装PostgreSQL数据库的... 目录一、exe文件安装 (推荐)下载安装包1. 选择操作系统2. 跳转到EDB(PostgreSQL 的