android 编译 release版本,详细android gradle 只编译realse版本
大部分来自于
gradle build 会生成默认的debug版本 和 release 版本
gradle assemblerelease不生成debug版本,只生成release版本
gradle assembledebug 不生成release版本,只生成debug版本
可以在下面的命令显示出得结果中看到版本的意思。
查看所有的task ,命令 :gradle tasks
osdeMacBook-Pro:app os$ gradle tasks
:app:tasks
------------------------------------------------------------
All tasks runnable from project :app
------------------------------------------------------------
Android tasks
-------------
androidDependencies- Displays the Android dependencies of the project
signingReport- Displays the signing info for each variant
Build tasks
-----------
assemble- Assembles all variants of all applications and secondary packages.
assembleDebug- Assembles all Debug builds
assembleHiapk- Assembles all Hiapk builds
assembleHiapkDebug- Assembles the Debug build for flavor Hiapk
assembleHiapkDebugTest- Assembles the Test build for the HiapkDebug build
assembleHiapkRelease- Assembles the Release build for flavor Hiapk
assemblePlaystore- Assembles all Playstore builds
assemblePlaystoreDebug- Assembles the Debug build for flavor Playstore
assemblePlaystoreDebugTest- Assembles the Test build for the PlaystoreDebug build
assemblePlaystoreRelease- Assembles the Release build for flavor Playstore
assembleRelease- Assembles all Release builds
assembleTest- Assembles all the Test applications
build- Assembles and tests this project.
buildDependents- Assembles and tests this project and all projects that depend on it.
buildNeeded- Assembles and tests this project and all projects it depends on.
clean- Deletes the build directory.
Help tasks
----------
components- Displays the components produced by project ':app'.
dependencies- Displays all dependencies declared in project ':app'.
dependencyInsight- Displays the insight into a specific dependency in project ':app'.
help- Displays a help message
projects- Displays the sub-projects of project ':app'.
properties- Displays the properties of project ':app'.
tasks- Displays the tasks runnable from project ':app'.
Install tasks
-------------
installHiapkDebug- Installs the Debug build for flavor Hiapk
installHiapkDebugTest- Installs the Test build for the HiapkDebug build
installHiapkRelease- Installs the Release build for flavor Hiapk
installPlaystoreDebug- Installs the Debug build for flavor Playstore
installPlaystoreDebugTest- Installs the Test build for the PlaystoreDebug build
installPlaystoreRelease- Installs the Release build for flavor Playstore
uninstallAll- Uninstall all applications.
uninstallHiapkDebug- Uninstalls the Debug build for flavor Hiapk
uninstallHiapkDebugTest- Uninstalls the Test build for the HiapkDebug build
uninstallHiapkRelease- Uninstalls the Release build for flavor Hiapk
uninstallPlaystoreDebug- Uninstalls the Debug build for flavor Playstore
uninstallPlaystoreDebugTest- Uninstalls the Test build for the PlaystoreDebug build
uninstallPlaystoreRelease- Uninstalls the Release build for flavor Playstore
Verification tasks
------------------
check- Runs all checks.
connectedAndroidTest- Installs and runs instrumentation tests for all flavors on connected devices.
connectedAndroidTestHiapkDebug- Installs and runs the tests for Build 'hiapkDebug' on connected devices.
connectedAndroidTestPlaystoreDebug- Installs and runs the tests for Build 'playstoreDebug' on connected devices.
connectedCheck- Runs all device checks on currently connected devices.
deviceAndroidTest- Installs and runs instrumentation tests using all Device Providers.
deviceCheck- Runs all device checks using Device Providers and Test Servers.
lint- Runs lint on all variants.
lintHiapkDebug- Runs lint on the HiapkDebug build
lintHiapkRelease- Runs lint on the HiapkRelease build
lintPlaystoreDebug- Runs lint on the PlaystoreDebug build
lintPlaystoreRelease- Runs lint on the PlaystoreRelease build
Other tasks
-----------
compileHiapkDebugSources
compileHiapkDebugTestSources
compileHiapkReleaseSources
compilePlaystoreDebugSources
compilePlaystoreDebugTestSources
compilePlaystoreReleaseSources
Rules
-----
Pattern: clean: Cleans the output files of a task.
Pattern: build: Assembles the artifacts of a configuration.
Pattern: upload: Assembles and uploads the artifacts belonging to a configuration.
To see all tasks and more detail, run with --all.
BUILD SUCCESSFUL
Total time: 8.967 secs
然后,在build tasks 中选取需要单独bulid的命令
有中文翻译版本在这,gradle编译
android 编译 release版本,详细android gradle 只编译realse版本相关推荐
- Android笔记系列--超详细DownloadManager使用,兼容到版本8.0
超详细DownloadManager使用,兼容到版本8.0 最近用到了软件更新,感觉自己写更新比较麻烦,还要定义通知栏的进度效果,想了一下还是使用系统自带的DownloadManager好了,但这个坑 ...
- c语言编译错误信息详细解释,C语言编译错误信息说明大全
C说明 #operator not followed by maco argument name #运算符后没跟宏变元名 Ambiguous operators need parentheses 不明 ...
- android qq版本6.6.1,手机QQ6.6.1有哪些更新内容 手机QQ最新版本详细介绍
手机QQ安卓版最新6.6.1已经出来了.有很多的小伙伴们发现,这版的QQ就是为了情侣打造的,当然只是开玩笑罢了.更新了一些新的东西给小伙伴们,文中为大家带来的就是手机QQ最新版本详细介绍. 目前,iO ...
- android开发高手课百度云盘,Android开发高手课NOTE
内存优化 卡顿的原因 频繁 GC 造成卡顿.物理内存不足时系统会触发 low memory killer 机制,系统负载过高是造成卡顿的俩个原因. 除了频繁 GC 造成卡顿之外,物理内存不足时系统会触 ...
- android 上线apk,码云 Android apk 在线构建功能上线啦!
原标题:码云 Android apk 在线构建功能上线啦! #点击上图,立即参与OSC珠海源创会# duang duang duang -- 各位看官,开源中国码云 Android 项目构建新功能上线 ...
- centos7安装mysql5.7视频_Centos7安装MySQL5.7版本详细步骤
Centos7安装MySQL5.7版本详细步骤 Centos7安装MySQL5.7版本详细步骤 目录 1.安装前准备: 2. 安装mysql 2.1 下载并安装mysql官方的yum源 2.2 安装m ...
- android只编译release版本
通常,无论是app还是lib,直接编译,编译出来的是Debug版本. 如何直接编译release版本.参考如下: 在android studio界面的最左下脚,有两个icon:"Build ...
- androidstudio调试android 源码 jni,在android studio下配置gradle用ndk-build和ndk-gbd编译调试JNI...
因为要在旧版android在做一些工作.所以做用到了它.目标平台是:android api 10和armv6. 开发环境是:AS 版本2.3.2; SDK版配android 2.3.3(api10); ...
- 生成release版本的Android系统
1.使用platform密钥对apk进行签名 1.1.进入<Android_Source_Path>/build/target/product/security,找到[platform.p ...
最新文章
- 在Win 8.1上安装配置FlashDevelop5.0.0
- Express应用配置端口
- NLP 预训练家族再思考
- AntDB上使用uuid
- .NET chart 毫秒级坐标轴
- mysql创建账号并赋予权限
- Java Web 之Token+Cookie+Session
- lt;++mysql_php+js+mysql设计的仿webQQ-lt;1gt;邮箱验证
- [机器学习-原理篇]学习之线性回归、岭回归、Lasso回归
- c语言水库抽样算法代码,LeetCode---蓄水池抽样算法
- crontab周期任务
- chrom浏览器配置,把跨域保护关闭
- 【高德地图】获取我的位置信息
- 设为首页 加入收藏 html,如何在网站上添加“设为首页”“加入收藏”
- 小米文件管理android,小米文件管理器
- node学习之Events和EventEmitter
- TensorFlow学习笔记——(11)循环神经网络
- 在 CSDN 博客 100 天技术日更的 Flag,我做到了!
- 未来,大数据行业工资会断崖式下滑吗?
- 学习Masonry框架 - iOS
热门文章
- webuploader 实现图片批量上传
- 土壤湿度检测仪c语言代码,单片机测土壤湿度可自动浇水并报警 带C#上位机源码...
- linux rpm安装包忽视所有依赖强制安装
- 程序实例python_Python花式编程案例集锦(5)
- (小)算法题(长期更新)
- 清道夫第一季/全集Ray Donovan迅雷下载
- java提示系统找不到指定路径怎么解决?
- 哈工大软件构造期末复习(根据老师复习提纲整理)
- python与人工智能有关系吗_Python与人工智能到底有什么关系呢?Python学习
- 闪动的文字图片怎么制作?教你一招闪图在线制作