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

歡迎訪(fǎng)問(wèn) 生活随笔!

生活随笔

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

编程问答

android项目允许命令,android 项目 gradle 命令

發(fā)布時(shí)間:2025/3/20 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android项目允许命令,android 项目 gradle 命令 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

生成debug apk 并安裝

gradle installDebug

生成realde apk

gradlew assembleRelease

gradlew assembleDebug

命令列表

gradle tasks

Parallel execution with configuration on demand is an incubating feature.

:tasks

------------------------------------------------------------

All tasks runnable from root project

------------------------------------------------------------

Android tasks

-------------

androidDependencies - Displays the Android dependencies of the project.

signingReport - Displays the signing info for each variant.

sourceSets - Prints out all the source sets defined in this project.

Build tasks

-----------

assemble - Assembles all variants of all applications and secondary packages.

assembleAndroidTest - Assembles all the Test applications.

assembleDebug - Assembles all Debug builds.

assembleRelease - Assembles all Release builds.

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.

compileDebugAndroidTestSources

compileDebugSources

compileDebugUnitTestSources

compileReleaseSources

compileReleaseUnitTestSources

mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.

Build Setup tasks

-----------------

init - Initializes a new Gradle build. [incubating]

Help tasks

----------

buildEnvironment - Displays all buildscript dependencies declared in root project 'android'.

components - Displays the components produced by root project 'android'. [incubating]

dependencies - Displays all dependencies declared in root project 'android'.

dependencyInsight - Displays the insight into a specific dependency in root project 'android'.

help - Displays a help message.

model - Displays the configuration model of root project 'android'. [incubating]

projects - Displays the sub-projects of root project 'android'.

properties - Displays the properties of root project 'android'.

tasks - Displays the tasks runnable from root project 'android' (some of the displayed tasks may belong to subprojects).

Install tasks

-------------

installDebug - Installs the Debug build.

installDebugAndroidTest - Installs the android (on device) tests for the Debug build.

uninstallAll - Uninstall all applications.

uninstallDebug - Uninstalls the Debug build.

uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.

uninstallRelease - Uninstalls the Release build.

Verification tasks

------------------

check - Runs all checks.

connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.

connectedCheck - Runs all device checks on currently connected devices.

connectedDebugAndroidTest - Installs and runs the tests for debug on 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.

lintDebug - Runs lint on the Debug build.

lintRelease - Runs lint on the Release build.

test - Run unit tests for all variants.

testDebugUnitTest - Run unit tests for the debug build.

testReleaseUnitTest - Run unit tests for the release build.

Other tasks

-----------

assembleDefault

cdvBuildDebug

cdvBuildRelease

cdvPrintProps

jarDebugClasses

jarReleaseClasses

packageDebugJarArtifact

packageReleaseJarArtifact

transformResourcesWithMergeJavaResForDebugUnitTest

transformResourcesWithMergeJavaResForReleaseUnitTest

wrapper

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 gradle tasks --all

To see more detail about a task, run gradle help --task

BUILD SUCCESSFUL

Total time: 6.462 secs

總結(jié)

以上是生活随笔為你收集整理的android项目允许命令,android 项目 gradle 命令的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

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