Flutter是Google使用Dart语言开发的移动应用开发框架,使用一套Dart代码就能快速构建高性能、高保真的iOS和Android应用程序,并且在排版、图标、滚动、点击等方面实现零差异。
在鼓楼等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站设计、成都网站制作 网站设计制作按需求定制设计,公司网站建设,企业网站建设,品牌网站制作,全网整合营销推广,外贸网站建设,鼓楼网站建设费用合理。
CentOS Linux release 7.7.1908 (Core)
java version "1.8.0_241"
git version 2.22.0
Android SDK version 29.0.3
Flutter version 1.12.13+hotfix.9
12345
yum -y install git unzip zip
1
更新git版本
#yum -y install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
#yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum -y update git
1234
git version 2.22.0
1
下载地址
tar -zxvf jdk-8u241-linux-x64.tar.gz -C /usr/local
1
#自定义变量
export JAVA_HOME=/usr/local/jdk1.8.0_241
export ANDROID_HOME=/usr/local/sdk
export FLUTTER_HOME=/usr/local/flutter
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=${JAVA_HOME}/bin:${ANDROID_HOME}/build-tools/29.0.3:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/platform-tools:${FLUTTER_HOME}/bin:${PATH}
1234567
source /etc/profile
1
SDK Tool下载地址
unzip commandlinetools-linux-6200805_latest.zip -d /usr/local
mkdir -p /usr/local/sdk
cd /usr/local/tools/bin
./sdkmanager --list --sdk_root=/usr/local/sdk #显示可安装包
./sdkmanager --install "platforms;android-29" --sdk_root=/usr/local/sdk #安装android-29
./sdkmanager --install "platform-tools" --sdk_root=/usr/local/sdk #安装platform-tools
./sdkmanager --install "build-tools;29.0.3" --sdk_root=/usr/local/sdk #安装build-tools
./sdkmanager --install "cmdline-tools;latest" --sdk_root=/usr/local/sdk #安装cmdline-tools
12345678
cd /usr/local
#git clone https://github.com/flutter/flutter.git -b v1.14.4
git clone https://github.com/flutter/flutter.git -b stable
123
flutter doctor -v
1
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
[] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.9 at /usr/local/flutter
• Framework revision f139b11009 (13 days ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /usr/local/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /usr/local/sdk
• Java binary at: /usr/local/jdk1.8.0_241/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
网站标题:Linux下部署Flutter开发框架
本文URL:http://www.mswzjz.cn/qtweb/news33/53033.html
攀枝花网站建设、攀枝花网站运维推广公司-贝锐智能,是专注品牌与效果的网络营销公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 贝锐智能