日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

android 编译 release版本,详细android gradle 只编译realse版本

發(fā)布時(shí)間:2023/12/20 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android 编译 release版本,详细android gradle 只编译realse版本 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

大部分來自于

gradle build 會(huì)生成默認(rèn)的debug版本 和 release 版本

gradle assemblerelease不生成debug版本,只生成release版本

gradle assembledebug ?不生成release版本,只生成debug版本

可以在下面的命令顯示出得結(jié)果中看到版本的意思。

查看所有的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 中選取需要單獨(dú)bulid的命令

有中文翻譯版本在這,gradle編譯

總結(jié)

以上是生活随笔為你收集整理的android 编译 release版本,详细android gradle 只编译realse版本的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。