189 8069 5689

详细androidgradle只编译realse版本-创新互联

大部分来自于

创新互联建站2013年至今,公司以做网站、网站设计、系统开发、网络推广、文化传媒、企业宣传、平面广告设计等为主要业务,适用行业近百种。服务企业客户1000多家,涉及国内多个省份客户。拥有多年网站建设开发经验。为企业提供专业的网站建设、创意设计、宣传推广等服务。 通过专业的设计、独特的风格,为不同客户提供各种风格的特色服务。

http://developer.android.com/sdk/installing/studio-build.html

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编译

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前题目:详细androidgradle只编译realse版本-创新互联
URL分享:http://jkwzsj.com/article/gcjhd.html

其他资讯