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

    相关文章

    mac安装nvm(node.js)多版本管理实践步骤

    《mac安装nvm(node.js)多版本管理实践步骤》:本文主要介绍mac安装nvm(node.js)多版本管理的相关资料,NVM是一个用于管理多个Node.js版本的命令行工具,它允许开发者在... 目录NVM功能简介MAC安装实践一、下载nvm二、安装nvm三、安装node.js总结NVM功能简介N

    python安装whl包并解决依赖关系的实现

    《python安装whl包并解决依赖关系的实现》本文主要介绍了python安装whl包并解决依赖关系的实现,文中通过图文示例介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录一、什么是whl文件?二、我们为什么需要使用whl文件来安装python库?三、我们应该去哪儿下

    MySQL安装时initializing database失败的问题解决

    《MySQL安装时initializingdatabase失败的问题解决》本文主要介绍了MySQL安装时initializingdatabase失败的问题解决,文中通过图文介绍的非常详细,对大家的学... 目录问题页面:解决方法:问题页面:解决方法:1.勾选红框中的选项:2.将下图红框中全部改为英

    MySQL9.0默认路径安装下重置root密码

    《MySQL9.0默认路径安装下重置root密码》本文主要介绍了MySQL9.0默认路径安装下重置root密码,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们... 目录问题描述环境描述解决方法正常模式下修改密码报错原因问题描述mysqlChina编程采用默认安装路径,

    Python使用国内镜像加速pip安装的方法讲解

    《Python使用国内镜像加速pip安装的方法讲解》在Python开发中,pip是一个非常重要的工具,用于安装和管理Python的第三方库,然而,在国内使用pip安装依赖时,往往会因为网络问题而导致速... 目录一、pip 工具简介1. 什么是 pip?2. 什么是 -i 参数?二、国内镜像源的选择三、如何

    Python安装时常见报错以及解决方案

    《Python安装时常见报错以及解决方案》:本文主要介绍在安装Python、配置环境变量、使用pip以及运行Python脚本时常见的错误及其解决方案,文中介绍的非常详细,需要的朋友可以参考下... 目录一、安装 python 时常见报错及解决方案(一)安装包下载失败(二)权限不足二、配置环境变量时常见报错及

    MySQL8.2.0安装教程分享

    《MySQL8.2.0安装教程分享》这篇文章详细介绍了如何在Windows系统上安装MySQL数据库软件,包括下载、安装、配置和设置环境变量的步骤... 目录mysql的安装图文1.python访问网址2javascript.点击3.进入Downloads向下滑动4.选择Community Server5.

    CentOS系统Maven安装教程分享

    《CentOS系统Maven安装教程分享》本文介绍了如何在CentOS系统中安装Maven,并提供了一个简单的实际应用案例,安装Maven需要先安装Java和设置环境变量,Maven可以自动管理项目的... 目录准备工作下载并安装Maven常见问题及解决方法实际应用案例总结Maven是一个流行的项目管理工具

    MySql9.1.0安装详细教程(最新推荐)

    《MySql9.1.0安装详细教程(最新推荐)》MySQL是一个流行的关系型数据库管理系统,支持多线程和多种数据库连接途径,能够处理上千万条记录的大型数据库,本文介绍MySql9.1.0安装详细教程,... 目录mysql介绍:一、下载 Mysql 安装文件二、Mysql 安装教程三、环境配置1.右击此电脑

    在 Windows 上安装 DeepSeek 的完整指南(最新推荐)

    《在Windows上安装DeepSeek的完整指南(最新推荐)》在Windows上安装DeepSeek的完整指南,包括下载和安装Ollama、下载DeepSeekRXNUMX模型、运行Deep... 目录在www.chinasem.cn Windows 上安装 DeepSeek 的完整指南步骤 1:下载并安装