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

    相关文章

    修复已被利用的高危漏洞! macOS Sequoia 15.6.1发布

    《修复已被利用的高危漏洞!macOSSequoia15.6.1发布》苹果公司于今日发布了macOSSequoia15.6.1更新,这是去年9月推出的macOSSequoia操作... MACOS Sequoia 15.6.1 正式发布!此次更新修复了一个已被黑客利用的严重安全漏洞,并解决了部分中文用户反馈的

    RabbitMQ 延时队列插件安装与使用示例详解(基于 Delayed Message Plugin)

    《RabbitMQ延时队列插件安装与使用示例详解(基于DelayedMessagePlugin)》本文详解RabbitMQ通过安装rabbitmq_delayed_message_exchan... 目录 一、什么是 RabbitMQ 延时队列? 二、安装前准备✅ RabbitMQ 环境要求 三、安装延时队

    linux系统上安装JDK8全过程

    《linux系统上安装JDK8全过程》文章介绍安装JDK的必要性及Linux下JDK8的安装步骤,包括卸载旧版本、下载解压、配置环境变量等,强调开发需JDK,运行可选JRE,现JDK已集成JRE... 目录为什么要安装jdk?1.查看linux系统是否有自带的jdk:2.下载jdk压缩包2.解压3.配置环境

    Python库 Django 的简介、安装、用法入门教程

    《Python库Django的简介、安装、用法入门教程》Django是Python最流行的Web框架之一,它帮助开发者快速、高效地构建功能强大的Web应用程序,接下来我们将从简介、安装到用法详解,... 目录一、Django 简介 二、Django 的安装教程 1. 创建虚拟环境2. 安装Django三、创

    linux安装、更新、卸载anaconda实践

    《linux安装、更新、卸载anaconda实践》Anaconda是基于conda的科学计算环境,集成1400+包及依赖,安装需下载脚本、接受协议、设置路径、配置环境变量,更新与卸载通过conda命令... 目录随意找一个目录下载安装脚本检查许可证协议,ENTER就可以安装完毕之后激活anaconda安装更

    Jenkins的安装与简单配置过程

    《Jenkins的安装与简单配置过程》本文简述Jenkins在CentOS7.3上安装流程,包括Java环境配置、RPM包安装、修改JENKINS_HOME路径及权限、启动服务、插件安装与系统管理设置... 目录www.chinasem.cnJenkins安装访问并配置JenkinsJenkins配置邮件通知

    Win10安装Maven与环境变量配置过程

    《Win10安装Maven与环境变量配置过程》本文介绍Maven的安装与配置方法,涵盖下载、环境变量设置、本地仓库及镜像配置,指导如何在IDEA中正确配置Maven,适用于Java及其他语言项目的构建... 目录Maven 是什么?一、下载二、安装三、配置环境四、验证测试五、配置本地仓库六、配置国内镜像地址

    Python安装Pandas库的两种方法

    《Python安装Pandas库的两种方法》本文介绍了三种安装PythonPandas库的方法,通过cmd命令行安装并解决版本冲突,手动下载whl文件安装,更换国内镜像源加速下载,最后建议用pipli... 目录方法一:cmd命令行执行pip install pandas方法二:找到pandas下载库,然后

    Linux系统中查询JDK安装目录的几种常用方法

    《Linux系统中查询JDK安装目录的几种常用方法》:本文主要介绍Linux系统中查询JDK安装目录的几种常用方法,方法分别是通过update-alternatives、Java命令、环境变量及目... 目录方法 1:通过update-alternatives查询(推荐)方法 2:检查所有已安装的 JDK方

    SQL Server安装时候没有中文选项的解决方法

    《SQLServer安装时候没有中文选项的解决方法》用户安装SQLServer时界面全英文,无中文选项,通过修改安装设置中的国家或地区为中文中国,重启安装程序后界面恢复中文,解决了问题,对SQLSe... 你是不是在安装SQL Server时候发现安装界面和别人不同,并且无论如何都没有中文选项?这个问题也