Flutter编程:Flutter命令行的学习
1.创建 Flutter 工程
flutter create <output directory>
D:\notebook\flutter\projects\ui_tutorial\layout>flutter create layout_app
Creating project layout_app...
layout_app\.gitignore (created)
layout_app\.idea\libraries\Dart_SDK.xml (created)
layout_app\.idea\libraries\Flutter_for_Android.xml (created)
layout_app\.idea\libraries\KotlinJavaRuntime.xml (created)
layout_app\.idea\modules.xml (created)
layout_app\.idea\runConfigurations\main_dart.xml (created)
layout_app\.idea\workspace.xml (created)
layout_app\.metadata (created)
layout_app\android\app\build.gradle (created)
layout_app\android\app\src\main\java\com\example\layout_app\MainActivity.java
(created)
layout_app\android\build.gradle (created)
layout_app\android\layout_app_android.iml (created)
layout_app\android\app\src\debug\AndroidManifest.xml (created)
layout_app\android\app\src\main\AndroidManifest.xml (created)
layout_app\android\app\src\main\res\drawable\launch_background.xml (created)
layout_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\values\styles.xml (created)
layout_app\android\app\src\profile\AndroidManifest.xml (created)
layout_app\android\gradle\wrapper\gradle-wrapper.properties (created)
layout_app\android\gradle.properties (created)
layout_app\android\settings.gradle (created)
layout_app\ios\Runner\AppDelegate.h (created)
layout_app\ios\Runner\AppDelegate.m (created)
layout_app\ios\Runner\main.m (created)
layout_app\ios\Runner.xcodeproj\project.pbxproj (created)
layout_app\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme
(created)
layout_app\ios\Flutter\AppFrameworkInfo.plist (created)
layout_app\ios\Flutter\Debug.xcconfig (created)
layout_app\ios\Flutter\Release.xcconfig (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json
(created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-1024x1024@1x .png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-.5x83.@2x .png (created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@2x.png
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@3x.png
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created) layout_app\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
layout_app\ios\Runner\Base.lproj\Main.storyboard (created)
layout_app\ios\Runner\Info.plist (created)
layout_app\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata
(created)
layout_app\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
layout_app\lib\main.dart (created)
layout_app\layout_app.iml (created)
layout_app\pubspec.yaml (created)
layout_app\README.md (created)
layout_app\test\widget_test.dart (created)
Running "flutter packages get" in layout_app... .1s
Wrote files. All done!
[√] Flutter is fully installed. (Channel beta, v1.2.1, on Microsoft Windows
[Version 6.1.], locale zh-CN)
[√] Android toolchain - develop for Android devices is fully installed. (Android SDK version 28.0.)
[!] Android Studio is not available. (not installed)
[!] Connected device is not available. Run "flutter doctor" for information about installing additional components. In order to run your application, type: $ cd layout_app
$ flutter run Your application code is in layout_app\lib\main.dart. D:\notebook\flutter\projects\ui_tutorial\layout>
2. Flutter 编译 apk
flutter build [apk]
D:\notebook\flutter\projects\ui_tutorial\layout>cd layout_app D:\notebook\flutter\projects\ui_tutorial\layout\layout_app>flutter build
Flutter build commands. Usage: flutter build <subcommand> [arguments]
-h, --help Print this usage information. Available subcommands:
aot Build an ahead-of-time compiled snapshot of your app's Dart code.
apk Build an Android APK file from your app.
appbundle Build an Android App Bundle file from your app.
bundle Build the Flutter assets directory from your app.
flx Deprecated
ios Build an iOS application bundle (Mac OS X host only). Run "flutter help" to see global options. D:\notebook\flutter\projects\ui_tutorial\layout\layout_app>flutter build apk
Initializing gradle... .3s
Resolving dependencies... .5s
Running Gradle task 'assembleRelease'...
Calling mockable JAR artifact transform to create file: C:\Users\Administrator\.
gradle\caches\transforms-\files-1.1\android.jar\9af1ff324598fa2d595c0bf1564a0c1
\android.jar with input D:\softs\Android\android-sdk\platforms\android-\andro
id.jar
Running Gradle task 'assembleRelease'... .9s (!)
Built build\app\outputs\apk\release\app-release.apk (.8MB). D:\notebook\flutter\projects\ui_tutorial\layout\layout_app>
Flutter 是站在巨人的肩膀上做出来的优秀作品。
Flutter编程:Flutter命令行的学习的更多相关文章
- flutter之VSCode下Flutter常用终端命令行
https://www.cnblogs.com/lxlx1798/p/11049922.html 梁飞宇 [Flutter学习]之VSCode下Flutter常用终端命令行 Flutter 常用命令行 ...
- 【Flutter学习】之VSCode下Flutter常用终端命令行
Flutter 常用命令行 相关项目操作 查看Flutter版本 查看当前版本 flutter --version 查看所有版本 flutter version 打印所有命令行用法信息 flutter ...
- python 命令行参数学习(一)
用了这么久,还没怎么学习python的命令行参数,是在惭愧. 参考文章地址:http://www.cnblogs.com/jianboqi/archive/2013/01/10/2854726.htm ...
- FFmpeg命令行工具学习(一):查看媒体文件头信息工具ffprobe
一.简述 ffprobe是ffmpeg命令行工具中相对简单的,此命令是用来查看媒体文件格式的工具. 二.命令格式 在命令行中输入如下格式的命令: ffprobe [文件名] 三.使用ffprobe查看 ...
- FFmpeg命令行工具学习(三):媒体文件转换工具ffmpeg
一.简述 ffmpeg是一个非常强大的工具,它可以转换任何格式的媒体文件,并且还可以用自己的AudioFilter以及VideoFilter进行处理和编辑.有了它,我们就可以对媒体文件做很多我们想做的 ...
- FFmpeg命令行工具学习(二):播放媒体文件的工具ffplay
一.简述 ffplay是以FFmpeg框架为基础,外加渲染音视频的库libSDL构建的媒体文件播放器. 在使用ffplay之前必须要安装到系统中,MAC的安装教程为:http://www.cnblog ...
- FFmpeg命令行工具学习(四):FFmpeg 采集设备
在使用 FFmpeg 作为编码器时,可以使用FFmpeg采集本地的音视频采集设备的数据,然后进行编码.封装.传输等操作. 例如,我们可以采集摄像头的图像作为视频,采集麦克风的数据作为音频,然后对采集的 ...
- Bash编程(3) 命令行解析与扩展
$@表示脚本输入的全部参数,在bash脚本中,若$@增加引号("$@"),则包含空格的参数也会被保留,若不增加引号($@),则包含空格的参数会被拆分. 例: # sa脚本内容如下: ...
- [转载]Python命令行参数学习
转载自: http://blog.163.com/weak_time/blog/static/25852809120169333247925/ Python的命令行参数,提供了很多有用的功能,可以方便 ...
随机推荐
- easyUI form sumit 中文乱码
jsp 编码方式: pageEncoding="UTF-8" tomcat 编码方式: <Connector connectionTimeout="20000&qu ...
- Socket编程(c语言示例)
转自:http://blog.csdn.net/dxpqxb/article/details/8166423 前言 Socket可以看成在两个程序进行通讯连接中的一个端点,是连接应用程序和网络驱动程序 ...
- Android 中menu在activity中的使用
1.在res下选择new 选择Android resource directory 2.在弹出框中Resource type选择menu 3.在res下就可以看到menu文件夹 4.在menu文件夹 ...
- sql server 简单语句整合
1.去重distinct , group by select distinct userid,username from 表名 select userid,username from 表名 group ...
- 转载:解决CentOS7虚拟机无法上网并设置CentOS7虚拟机使用静态IP上网
最近在VMware虚拟机里玩Centos,装好后发现上不了网.经过一番艰辛的折腾,终于找到出解决问题的方法了.最终的效果是无论是ping内网IP还是ping外网ip,都能正常ping通.方法四步走: ...
- 十六、Node.js-fs模块-流
10. fs.createReadStream 从文件流中读取数据 /** * 之前我们学习过读取文件内容的方法readFile():该方法适合读取文件内容比较少的文件,如果遇到数据量庞大的文件,我们 ...
- CLion中出现错误add_dependencies called with incorrect number of arguments解决
出现这个错误以后我以为是IDE出现问题了,可是重新启动,打开其他的工程文件以后发现并没有这个错误,但是新建的文件却报错 然后就打开其他工程的Cmake_list.txt文件,发现最后一行是有工程文件夹 ...
- shell和python之间的参数传递
我们在使用shell调用其他语言的程序的时候,希望能够便捷的从shell中输入参数,然后由目标程序接收参数并运行,这样就省去了每次需要在原程序进行修改带来的麻烦,这里介绍一下如何从shell中 ...
- LAMP课程(3)
LAMP课程(3) 一.bash的使用 1.1.输出重定向 >:覆盖输出(写入内容) 具体实例1:将内容写入到文件中 >>:追加输出 具体实例2: 1.2 && ...
- JDBC的概念&使用步骤
概念: JDBC(Java DataBase Connectivity)是一种数据库连接技术,能实现Java程序对各种数据库的访问.由一组使用Java语言编写的类和接口(JDBC API)组成,他们位 ...