Android Studio不同编译阶段执行的不同命令

来源:互联网 发布:淘宝布局管理怎么做好 编辑:程序博客网 时间:2024/05/18 03:07

Android Studio点击运行按钮执行的命令


Gradle Assemble执行的命令

Starting a Gradle Daemon (subsequent builds will be faster)The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:app:prepareCnPedantSweetalertLibrary13Library UP-TO-DATE:app:prepareComAndroidSupportAnimatedVectorDrawable2510Library UP-TO-DATE:app:prepareComAndroidSupportAppcompatV72510Library UP-TO-DATE:app:prepareComAndroidSupportDesign2510Library:app:prepareComAndroidSupportRecyclerviewV72510Library:app:prepareComAndroidSupportSupportCompat2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportCoreUi2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportCoreUtils2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportFragment2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportMediaCompat2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportV42510Library UP-TO-DATE:app:prepareComAndroidSupportSupportVectorDrawable2510Library UP-TO-DATE:app:prepareComAndroidSupportTransition2510Library:app:prepareComGetkeepsafeRelinkerRelinker122Library UP-TO-DATE:app:prepareComPnikosisMaterialishProgress10Library UP-TO-DATE:app:prepareComTbruyelleRxpermissionsRxpermissions091Library UP-TO-DATE:app:prepareIoReactivexRxandroid121Library UP-TO-DATE:app:prepareIoRealmRealmAndroidLibrary222Library UP-TO-DATE:app:prepareDebugDependencies:app:compileDebugAidl UP-TO-DATE:app:compileDebugRenderscript UP-TO-DATE:app:generateDebugBuildConfig UP-TO-DATE:app:generateDebugResValues UP-TO-DATE:app:generateDebugResources UP-TO-DATE:app:mergeDebugResources:app:processDebugManifest:app:processDebugResources:app:generateDebugSources:app:incrementalDebugJavaCompilationSafeguard:app:compileDebugJavaWithJavac注: Version 2.3.0 of Realm is now available: http://static.realm.io/downloads/java/latest注: Processing class MusicAblumBean注: Processing class MusicArtistBean注: Processing class MusicBean注: Processing class MusicImageBean注: Processing class MusicWikiBean注: Creating DefaultRealmModule注: 某些输入文件使用了未经检查或不安全的操作。注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。:app:compileDebugNdk UP-TO-DATE:app:compileDebugSources:app:mergeDebugShaders:app:compileDebugShaders:app:generateDebugAssets:app:mergeDebugAssets:app:transformClassesWithRealmTransformerForDebug:app:transformClassesWithDexForDebug:app:mergeDebugJniLibFolders:app:transformNative_libsWithMergeJniLibsForDebug:app:transformNative_libsWithStripDebugSymbolForDebug:app:processDebugJavaRes UP-TO-DATE:app:transformResourcesWithMergeJavaResForDebug:app:validateSigningDebug:app:packageDebug:app:assembleDebug:app:checkReleaseManifest:app:prepareReleaseDependencies:app:compileReleaseAidl:app:compileReleaseRenderscript:app:generateReleaseBuildConfig:app:generateReleaseResValues:app:generateReleaseResources:app:mergeReleaseResources:app:processReleaseManifest:app:processReleaseResources:app:generateReleaseSources:app:incrementalReleaseJavaCompilationSafeguard:app:compileReleaseJavaWithJavac注: Version 2.3.0 of Realm is now available: http://static.realm.io/downloads/java/latest注: Processing class MusicAblumBean注: Processing class MusicArtistBean注: Processing class MusicBean注: Processing class MusicImageBean注: Processing class MusicWikiBean注: Creating DefaultRealmModule注: 某些输入文件使用了未经检查或不安全的操作。注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。:app:compileReleaseNdk UP-TO-DATE:app:compileReleaseSources:app:lintVitalRelease:app:mergeReleaseShaders:app:compileReleaseShaders:app:generateReleaseAssets:app:mergeReleaseAssets:app:transformClassesWithRealmTransformerForRelease:app:transformClassesWithDexForRelease:app:mergeReleaseJniLibFolders:app:transformNative_libsWithMergeJniLibsForRelease:app:transformNative_libsWithStripDebugSymbolForRelease:app:processReleaseJavaRes UP-TO-DATE:app:transformResourcesWithMergeJavaResForRelease:app:packageRelease:app:assembleRelease:app:assembleBUILD SUCCESSFUL

详解:

app:preBuild UP-TO-DATE准备编译

app:preDebugBuild UP-TO-DATE准备Debug模式的编译
app:checkDebugManifest 检查Debug的manifest
app:preReleaseBuild UP-TO-DATE 准备Release的编译

准备需要的第三方依赖包
app:prepareCnPedantSweetalertLibrary13Library UP-TO-DATE
app:prepareComAndroidSupportAnimatedVectorDrawable2510Library UP-TO-DATE
app:prepareComAndroidSupportAppcompatV72510Library UP-TO-DATE
app:prepareComAndroidSupportDesign2510Library
app:prepareComAndroidSupportRecyclerviewV72510Library
app:prepareComAndroidSupportSupportCompat2510Library UP-TO-DATE
app:prepareComAndroidSupportSupportCoreUi2510Library UP-TO-DATE
app:prepareComAndroidSupportSupportCoreUtils2510Library UP-TO-DATE
app:prepareComAndroidSupportSupportFragment2510Library UP-TO-DATE
app:prepareComAndroidSupportSupportMediaCompat2510Library UP-TO-DATE
app:prepareComAndroidSupportSupportV42510Library UP-TO-DATE
app:prepareComAndroidSupportSupportVectorDrawable2510Library UP-TO-DATE
app:prepareComAndroidSupportTransition2510Library
app:prepareComGetkeepsafeRelinkerRelinker122Library UP-TO-DATE
app:prepareComPnikosisMaterialishProgress10Library UP-TO-DATE
app:prepareComTbruyelleRxpermissionsRxpermissions091Library UP-TO-DATE
app:prepareIoReactivexRxandroid121Library UP-TO-DATE
app:prepareIoRealmRealmAndroidLibrary222Library UP-TO-DATE

准备第三方的依赖包到此结束

DeBug模式下的编译
:app:prepareDebugDependencies 准备依赖
:app:compileDebugAidl UP-TO-DATE 依赖AIDL
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources merge资源
:app:processDebugManifest 合并Maifest
:app:processDebugResources 合并Resource
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac 编译
注: Version 2.3.0 of Realm is now available: http://static.realm.io/downloads/java/latest
注: Processing class MusicAblumBean
注: Processing class MusicArtistBean
注: Processing class MusicBean
注: Processing class MusicImageBean
注: Processing class MusicWikiBean
注: Creating DefaultRealmModule
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:app:compileDebugNdk UP-TO-DATE 依赖NDK
:app:compileDebugSources 依赖资源
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets 
:app:mergeDebugAssets merge Assets
:app:transformClassesWithRealmTransformerForDebug
:app:transformClassesWithDexForDebug
:app:mergeDebugJniLibFolders
:app:transformNative_libsWithMergeJniLibsForDebug
:app:transformNative_libsWithStripDebugSymbolForDebug
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug
:app:validateSigningDebug 签名
:app:packageDebug 打包
:app:assembleDebug 生成APK

Debug模式下的编译到此

Realease模式下的编译
:app:checkReleaseManifest
:app:prepareReleaseDependencies
:app:compileReleaseAidl
:app:compileReleaseRenderscript
:app:generateReleaseBuildConfig
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
:app:processReleaseManifest
:app:processReleaseResources
:app:generateReleaseSources
:app:incrementalReleaseJavaCompilationSafeguard
:app:compileReleaseJavaWithJavac
注: Version 2.3.0 of Realm is now available: http://static.realm.io/downloads/java/latest
注: Processing class MusicAblumBean
注: Processing class MusicArtistBean
注: Processing class MusicBean
注: Processing class MusicImageBean
注: Processing class MusicWikiBean
注: Creating DefaultRealmModule
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:app:compileReleaseNdk UP-TO-DATE
:app:compileReleaseSources
:app:lintVitalRelease
:app:mergeReleaseShaders
:app:compileReleaseShaders
:app:generateReleaseAssets
:app:mergeReleaseAssets
:app:transformClassesWithRealmTransformerForRelease
:app:transformClassesWithDexForRelease
:app:mergeReleaseJniLibFolders
:app:transformNative_libsWithMergeJniLibsForRelease
:app:transformNative_libsWithStripDebugSymbolForRelease
:app:processReleaseJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForRelease
:app:packageRelease
:app:assembleRelease

Realease模式下的编译到此
:app:assemble

编译结束

Gradle Build编译命令

The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:app:prepareCnPedantSweetalertLibrary13Library UP-TO-DATE:app:prepareComAndroidSupportAnimatedVectorDrawable2510Library UP-TO-DATE:app:prepareComAndroidSupportAppcompatV72510Library UP-TO-DATE:app:prepareComAndroidSupportDesign2510Library UP-TO-DATE:app:prepareComAndroidSupportRecyclerviewV72510Library UP-TO-DATE:app:prepareComAndroidSupportSupportCompat2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportCoreUi2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportCoreUtils2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportFragment2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportMediaCompat2510Library UP-TO-DATE:app:prepareComAndroidSupportSupportV42510Library UP-TO-DATE:app:prepareComAndroidSupportSupportVectorDrawable2510Library UP-TO-DATE:app:prepareComAndroidSupportTransition2510Library UP-TO-DATE:app:prepareComGetkeepsafeRelinkerRelinker122Library UP-TO-DATE:app:prepareComPnikosisMaterialishProgress10Library UP-TO-DATE:app:prepareComTbruyelleRxpermissionsRxpermissions091Library UP-TO-DATE:app:prepareIoReactivexRxandroid121Library UP-TO-DATE:app:prepareIoRealmRealmAndroidLibrary222Library UP-TO-DATE:app:prepareDebugDependencies:app:compileDebugAidl UP-TO-DATE:app:compileDebugRenderscript UP-TO-DATE:app:generateDebugBuildConfig UP-TO-DATE:app:generateDebugResValues UP-TO-DATE:app:generateDebugResources UP-TO-DATE:app:mergeDebugResources:app:processDebugManifest UP-TO-DATE:app:processDebugResources UP-TO-DATE:app:generateDebugSources UP-TO-DATE:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE:app:compileDebugJavaWithJavac UP-TO-DATE:app:compileDebugNdk UP-TO-DATE:app:compileDebugSources UP-TO-DATE:app:mergeDebugShaders UP-TO-DATE:app:compileDebugShaders UP-TO-DATE:app:generateDebugAssets UP-TO-DATE:app:mergeDebugAssets UP-TO-DATE:app:transformClassesWithRealmTransformerForDebug UP-TO-DATE:app:transformClassesWithDexForDebug UP-TO-DATE:app:mergeDebugJniLibFolders UP-TO-DATE:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE:app:transformNative_libsWithStripDebugSymbolForDebug UP-TO-DATE:app:processDebugJavaRes UP-TO-DATE:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE:app:validateSigningDebug:app:packageDebug UP-TO-DATE:app:assembleDebug UP-TO-DATE:app:checkReleaseManifest:app:prepareReleaseDependencies:app:compileReleaseAidl UP-TO-DATE:app:compileReleaseRenderscript UP-TO-DATE:app:generateReleaseBuildConfig UP-TO-DATE:app:generateReleaseResValues UP-TO-DATE:app:generateReleaseResources UP-TO-DATE:app:mergeReleaseResources UP-TO-DATE:app:processReleaseManifest UP-TO-DATE:app:processReleaseResources UP-TO-DATE:app:generateReleaseSources UP-TO-DATE:app:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE:app:compileReleaseJavaWithJavac UP-TO-DATE:app:compileReleaseNdk UP-TO-DATE:app:compileReleaseSources UP-TO-DATE:app:lintVitalRelease:app:mergeReleaseShaders UP-TO-DATE:app:compileReleaseShaders UP-TO-DATE:app:generateReleaseAssets UP-TO-DATE:app:mergeReleaseAssets UP-TO-DATE:app:transformClassesWithRealmTransformerForRelease UP-TO-DATE:app:transformClassesWithDexForRelease UP-TO-DATE:app:mergeReleaseJniLibFolders UP-TO-DATE:app:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE:app:transformNative_libsWithStripDebugSymbolForRelease UP-TO-DATE:app:processReleaseJavaRes UP-TO-DATE:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE:app:packageRelease UP-TO-DATE:app:assembleRelease:app:assemble:app:lintRan lint on variant debug: 827 issues foundRan lint on variant release: 827 issues foundWrote HTML report to file:///Users/ligang967/Documents/my_workspace/MyMusic/app/build/outputs/lint-results-debug.htmlWrote XML report to file:///Users/ligang967/Documents/my_workspace/MyMusic/app/build/outputs/lint-results-debug.xml:app:incrementalDebugUnitTestJavaCompilationSafeguard UP-TO-DATE:app:preDebugUnitTestBuild UP-TO-DATE:app:prepareDebugUnitTestDependencies:app:compileDebugUnitTestJavaWithJavac:app:processDebugUnitTestJavaRes UP-TO-DATE:app:compileDebugUnitTestSources:app:mockableAndroidJar:app:assembleDebugUnitTest:app:testDebugUnitTest UP-TO-DATE:app:incrementalReleaseUnitTestJavaCompilationSafeguard UP-TO-DATE:app:preReleaseUnitTestBuild UP-TO-DATE:app:prepareReleaseUnitTestDependencies:app:compileReleaseUnitTestJavaWithJavac:app:processReleaseUnitTestJavaRes UP-TO-DATE:app:compileReleaseUnitTestSources:app:assembleReleaseUnitTest:app:testReleaseUnitTest UP-TO-DATE:app:test UP-TO-DATE:app:check:app:buildBUILD SUCCESSFUL


0 0
原创粉丝点击