大部分来自于

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版本相关推荐

  1. Android笔记系列--超详细DownloadManager使用,兼容到版本8.0

    超详细DownloadManager使用,兼容到版本8.0 最近用到了软件更新,感觉自己写更新比较麻烦,还要定义通知栏的进度效果,想了一下还是使用系统自带的DownloadManager好了,但这个坑 ...

  2. c语言编译错误信息详细解释,C语言编译错误信息说明大全

    C说明 #operator not followed by maco argument name #运算符后没跟宏变元名 Ambiguous operators need parentheses 不明 ...

  3. android qq版本6.6.1,手机QQ6.6.1有哪些更新内容 手机QQ最新版本详细介绍

    手机QQ安卓版最新6.6.1已经出来了.有很多的小伙伴们发现,这版的QQ就是为了情侣打造的,当然只是开玩笑罢了.更新了一些新的东西给小伙伴们,文中为大家带来的就是手机QQ最新版本详细介绍. 目前,iO ...

  4. android开发高手课百度云盘,Android开发高手课NOTE

    内存优化 卡顿的原因 频繁 GC 造成卡顿.物理内存不足时系统会触发 low memory killer 机制,系统负载过高是造成卡顿的俩个原因. 除了频繁 GC 造成卡顿之外,物理内存不足时系统会触 ...

  5. android 上线apk,码云 Android apk 在线构建功能上线啦!

    原标题:码云 Android apk 在线构建功能上线啦! #点击上图,立即参与OSC珠海源创会# duang duang duang -- 各位看官,开源中国码云 Android 项目构建新功能上线 ...

  6. centos7安装mysql5.7视频_Centos7安装MySQL5.7版本详细步骤

    Centos7安装MySQL5.7版本详细步骤 Centos7安装MySQL5.7版本详细步骤 目录 1.安装前准备: 2. 安装mysql 2.1 下载并安装mysql官方的yum源 2.2 安装m ...

  7. android只编译release版本

    通常,无论是app还是lib,直接编译,编译出来的是Debug版本. 如何直接编译release版本.参考如下: 在android studio界面的最左下脚,有两个icon:"Build ...

  8. 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); ...

  9. 生成release版本的Android系统

    1.使用platform密钥对apk进行签名 1.1.进入<Android_Source_Path>/build/target/product/security,找到[platform.p ...

最新文章

  1. 在Win 8.1上安装配置FlashDevelop5.0.0
  2. Express应用配置端口
  3. NLP 预训练家族再思考
  4. AntDB上使用uuid
  5. .NET chart 毫秒级坐标轴
  6. mysql创建账号并赋予权限
  7. Java Web 之Token+Cookie+Session
  8. lt;++mysql_php+js+mysql设计的仿webQQ-lt;1gt;邮箱验证
  9. [机器学习-原理篇]学习之线性回归、岭回归、Lasso回归
  10. c语言水库抽样算法代码,LeetCode---蓄水池抽样算法
  11. crontab周期任务
  12. chrom浏览器配置,把跨域保护关闭
  13. 【高德地图】获取我的位置信息
  14. 设为首页 加入收藏 html,如何在网站上添加“设为首页”“加入收藏”
  15. 小米文件管理android,小米文件管理器
  16. node学习之Events和EventEmitter
  17. TensorFlow学习笔记——(11)循环神经网络
  18. 在 CSDN 博客 100 天技术日更的 Flag,我做到了!
  19. 未来,大数据行业工资会断崖式下滑吗?
  20. 学习Masonry框架 - iOS

热门文章

  1. webuploader 实现图片批量上传
  2. 土壤湿度检测仪c语言代码,单片机测土壤湿度可自动浇水并报警 带C#上位机源码...
  3. linux rpm安装包忽视所有依赖强制安装
  4. 程序实例python_Python花式编程案例集锦(5)
  5. (小)算法题(长期更新)
  6. 清道夫第一季/全集Ray Donovan迅雷下载
  7. java提示系统找不到指定路径怎么解决?
  8. 哈工大软件构造期末复习(根据老师复习提纲整理)
  9. python与人工智能有关系吗_Python与人工智能到底有什么关系呢?Python学习
  10. 闪动的文字图片怎么制作?教你一招闪图在线制作