- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
每当我在对源代码进行任何修改的情况下点击“即时运行”图标时,我会得到 2-3 分钟的平均构建时间和一条消息
Instant Run applied code changes and restarted the app. Field Type Change.
我使用 this 打印了每项任务花费的时间并在这里粘贴我的日志。我突出显示了耗时超过 1 秒的任务。
任何人都可以快速浏览日志并告诉我发生了什么事吗?我该怎么做才能避免这些长时间的即时运行?现在几乎不可能进行开发。
Executing tasks: [:baymax:assembleDevelopmentDebug]
Configuration on demand is an incubating feature.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use the method ConfigurableReport.setDestination(File) instead.
:baymax:preBuild UP-TO-DATE
preBuild took 0.002000000 seconds
:baymax:preDevelopmentDebugBuild UP-TO-DATE
preDevelopmentDebugBuild took 0.002000000 seconds
:baymax:checkDevelopmentDebugManifest
checkDevelopmentDebugManifest took 0.003000000 seconds
:baymax:prepareAndroidVisitsCommonUnspecifiedLibrary
prepareAndroidVisitsCommonUnspecifiedLibrary took 0.015000000 seconds
:baymax:prepareComAndroidDatabindingAdapters131Library
prepareComAndroidDatabindingAdapters131Library took 0.011000000 seconds
:baymax:prepareComAndroidDatabindingLibrary131Library
prepareComAndroidDatabindingLibrary131Library took 0.010000000 seconds
:baymax:prepareComAndroidSupportAnimatedVectorDrawable2531Library
prepareComAndroidSupportAnimatedVectorDrawable2531Library took 0.004000000 seconds
:baymax:prepareComAndroidSupportAppcompatV72531Library
prepareComAndroidSupportAppcompatV72531Library took 0.016000000 seconds
:baymax:prepareComAndroidSupportCardviewV72531Library
prepareComAndroidSupportCardviewV72531Library took 0.003000000 seconds
:baymax:prepareComAndroidSupportConstraintConstraintLayout102Library
prepareComAndroidSupportConstraintConstraintLayout102Library took 0.007000000 seconds
:baymax:prepareComAndroidSupportCustomtabs2531Library
prepareComAndroidSupportCustomtabs2531Library took 0.009000000 seconds
:baymax:prepareComAndroidSupportDesign2531Library
prepareComAndroidSupportDesign2531Library took 0.004000000 seconds
:baymax:prepareComAndroidSupportGridlayoutV72531Library
prepareComAndroidSupportGridlayoutV72531Library took 0.004000000 seconds
:baymax:prepareComAndroidSupportMultidex101Library
prepareComAndroidSupportMultidex101Library took 0.009000000 seconds
:baymax:prepareComAndroidSupportPaletteV72531Library
prepareComAndroidSupportPaletteV72531Library took 0.008000000 seconds
:baymax:prepareComAndroidSupportPercent2531Library
prepareComAndroidSupportPercent2531Library took 0.003000000 seconds
:baymax:prepareComAndroidSupportRecyclerviewV72531Library
prepareComAndroidSupportRecyclerviewV72531Library took 0.002000000 seconds
:baymax:prepareComAndroidSupportSupportCompat2531Library
prepareComAndroidSupportSupportCompat2531Library took 0.004000000 seconds
:baymax:prepareComAndroidSupportSupportCoreUi2531Library
prepareComAndroidSupportSupportCoreUi2531Library took 0.010000000 seconds
:baymax:prepareComAndroidSupportSupportCoreUtils2531Library
prepareComAndroidSupportSupportCoreUtils2531Library took 0.012000000 seconds
:baymax:prepareComAndroidSupportSupportFragment2531Library
prepareComAndroidSupportSupportFragment2531Library took 0.008000000 seconds
:baymax:prepareComAndroidSupportSupportMediaCompat2531Library
prepareComAndroidSupportSupportMediaCompat2531Library took 0.004000000 seconds
:baymax:prepareComAndroidSupportSupportV42531Library
prepareComAndroidSupportSupportV42531Library took 0.008000000 seconds
:baymax:prepareComAndroidSupportSupportVectorDrawable2531Library
prepareComAndroidSupportSupportVectorDrawable2531Library took 0.005000000 seconds
:baymax:prepareComAndroidSupportTransition2531Library
prepareComAndroidSupportTransition2531Library took 0.004000000 seconds
:baymax:prepareComBirbitAndroidPriorityJobqueue201Library
prepareComBirbitAndroidPriorityJobqueue201Library took 0.004000000 seconds
:baymax:prepareComFacebookAndroidFacebookAndroidSdk4220Library
prepareComFacebookAndroidFacebookAndroidSdk4220Library took 0.003000000 seconds
:baymax:prepareComGetbaseFloatingactionbutton1101Library
prepareComGetbaseFloatingactionbutton1101Library took 0.004000000 seconds
:baymax:prepareComGetkeepsafeRelinkerRelinker122Library
prepareComGetkeepsafeRelinkerRelinker122Library took 0.008000000 seconds
:baymax:prepareComGithubBartekscAndroidPdfViewer240Library
prepareComGithubBartekscAndroidPdfViewer240Library took 0.009000000 seconds
:baymax:prepareComGithubBartekscPdfiumAndroid150Library
prepareComGithubBartekscPdfiumAndroid150Library took 0.006000000 seconds
:baymax:prepareComGithubChrisbanesPhotoView131Library
prepareComGithubChrisbanesPhotoView131Library took 0.018000000 seconds
:baymax:prepareComGithubDbachelderCreditCardEntry147Library
prepareComGithubDbachelderCreditCardEntry147Library took 0.011000000 seconds
:baymax:prepareComGithubJakeWhartonViewPagerIndicator241Library
prepareComGithubJakeWhartonViewPagerIndicator241Library took 0.013000000 seconds
:baymax:prepareComGithubRahatarmanahmedCircularprogressview250Library
prepareComGithubRahatarmanahmedCircularprogressview250Library took 0.004000000 seconds
:baymax:prepareComGoogleAndroidGmsPlayServicesBase1100Library
prepareComGoogleAndroidGmsPlayServicesBase1100Library took 0.014000000 seconds
:baymax:prepareComGoogleAndroidGmsPlayServicesBasement1100Library
prepareComGoogleAndroidGmsPlayServicesBasement1100Library took 0.008000000 seconds
:baymax:prepareComGoogleAndroidGmsPlayServicesGcm1100Library
prepareComGoogleAndroidGmsPlayServicesGcm1100Library took 0.003000000 seconds
:baymax:prepareComGoogleAndroidGmsPlayServicesIid1100Library
prepareComGoogleAndroidGmsPlayServicesIid1100Library took 0.002000000 seconds
:baymax:prepareComGoogleAndroidGmsPlayServicesLocation1100Library
prepareComGoogleAndroidGmsPlayServicesLocation1100Library took 0.003000000 seconds
:baymax:prepareComGoogleAndroidGmsPlayServicesTasks1100Library
prepareComGoogleAndroidGmsPlayServicesTasks1100Library took 0.003000000 seconds
:baymax:prepareComGoogleFirebaseFirebaseAnalytics1100Library
prepareComGoogleFirebaseFirebaseAnalytics1100Library took 0.008000000 seconds
:baymax:prepareComGoogleFirebaseFirebaseAnalyticsImpl1100Library
prepareComGoogleFirebaseFirebaseAnalyticsImpl1100Library took 0.019000000 seconds
:baymax:prepareComGoogleFirebaseFirebaseCommon1100Library
prepareComGoogleFirebaseFirebaseCommon1100Library took 0.014000000 seconds
:baymax:prepareComGoogleFirebaseFirebaseCore1100Library
prepareComGoogleFirebaseFirebaseCore1100Library took 0.015000000 seconds
:baymax:prepareComGoogleFirebaseFirebaseIid1100Library
prepareComGoogleFirebaseFirebaseIid1100Library took 0.014000000 seconds
:baymax:prepareComIntercomAndroidComposer102Library
prepareComIntercomAndroidComposer102Library took 0.010000000 seconds
:baymax:prepareComIntercomAndroidComposerGallery102Library
prepareComIntercomAndroidComposerGallery102Library took 0.019000000 seconds
:baymax:prepareComJakewhartonButterknife810Library
prepareComJakewhartonButterknife810Library took 0.004000000 seconds
:baymax:prepareComKailashdabhiOmRecorder110Library
prepareComKailashdabhiOmRecorder110Library took 0.010000000 seconds
:baymax:prepareComMakeramenRoundedimageview230Library
prepareComMakeramenRoundedimageview230Library took 0.004000000 seconds
:baymax:prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp15Library
prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp15Library took 0.013000000 seconds
:baymax:prepareComStripeStripeAndroid301Library
prepareComStripeStripeAndroid301Library took 0.011000000 seconds
:baymax:prepareComTwilioVideoAndroid101Library
prepareComTwilioVideoAndroid101Library took 0.005000000 seconds
:baymax:prepareFmJiecaoJiecaovideoplayer363Library
prepareFmJiecaoJiecaovideoplayer363Library took 0.009000000 seconds
:baymax:prepareIoBranchSdkAndroidLibrary280Library
prepareIoBranchSdkAndroidLibrary280Library took 0.002000000 seconds
:baymax:prepareIoIntercomAndroidIntercomSdk320Library
prepareIoIntercomAndroidIntercomSdk320Library took 0.003000000 seconds
:baymax:prepareIoIntercomAndroidIntercomSdkBase320Library
prepareIoIntercomAndroidIntercomSdkBase320Library took 0.007000000 seconds
:baymax:prepareIoIntercomAndroidIntercomSdkGcm320Library
prepareIoIntercomAndroidIntercomSdkGcm320Library took 0.021000000 seconds
:baymax:prepareIoReactivexRxandroid121Library
prepareIoReactivexRxandroid121Library took 0.011000000 seconds
:baymax:prepareIoRealmRealmAndroidLibrary231Library
prepareIoRealmRealmAndroidLibrary231Library took 0.006000000 seconds
:baymax:prepareNetHockeyappAndroidHockeySDK400Library
prepareNetHockeyappAndroidHockeySDK400Library took 0.003000000 seconds
:baymax:prepareNetYprestoAndroidtranscoderAndroidTranscoder0110Library
prepareNetYprestoAndroidtranscoderAndroidTranscoder0110Library took 0.008000000 seconds
:mixpanel-android-4.9.0:preBuild UP-TO-DATE
preBuild took 0.003000000 seconds
:mixpanel-android-4.9.0:preReleaseBuild UP-TO-DATE
preReleaseBuild took 0.005000000 seconds
:mixpanel-android-4.9.0:checkReleaseManifest
checkReleaseManifest took 0.009000000 seconds
:mixpanel-android-4.9.0:preReleaseUnitTestBuild UP-TO-DATE
preReleaseUnitTestBuild took 0.001000000 seconds
:mixpanel-android-4.9.0:prepareComAndroidSupportSupportV42400Library
prepareComAndroidSupportSupportV42400Library took 0.007000000 seconds
:mixpanel-android-4.9.0:prepareComGoogleAndroidGmsPlayServicesBase1021Library
prepareComGoogleAndroidGmsPlayServicesBase1021Library took 0.004000000 seconds
:mixpanel-android-4.9.0:prepareComGoogleAndroidGmsPlayServicesBasement1021Library
prepareComGoogleAndroidGmsPlayServicesBasement1021Library took 0.009000000 seconds
:mixpanel-android-4.9.0:prepareComGoogleAndroidGmsPlayServicesGcm1021Library
prepareComGoogleAndroidGmsPlayServicesGcm1021Library took 0.006000000 seconds
:mixpanel-android-4.9.0:prepareComGoogleAndroidGmsPlayServicesIid1021Library
prepareComGoogleAndroidGmsPlayServicesIid1021Library took 0.003000000 seconds
:mixpanel-android-4.9.0:prepareComGoogleAndroidGmsPlayServicesTasks1021Library
prepareComGoogleAndroidGmsPlayServicesTasks1021Library took 0.013000000 seconds
:mixpanel-android-4.9.0:prepareReleaseDependencies
prepareReleaseDependencies took 0.003000000 seconds
:mixpanel-android-4.9.0:compileReleaseAidl UP-TO-DATE
compileReleaseAidl took 0.024000000 seconds
:mixpanel-android-4.9.0:compileReleaseNdk NO-SOURCE
compileReleaseNdk took 0.003000000 seconds
:mixpanel-android-4.9.0:compileLint UP-TO-DATE
compileLint took 0.002000000 seconds
:mixpanel-android-4.9.0:copyReleaseLint NO-SOURCE
copyReleaseLint took 0.001000000 seconds
:mixpanel-android-4.9.0:compileReleaseRenderscript UP-TO-DATE
compileReleaseRenderscript took 0.019000000 seconds
:mixpanel-android-4.9.0:generateReleaseBuildConfig UP-TO-DATE
generateReleaseBuildConfig took 0.007000000 seconds
:mixpanel-android-4.9.0:generateReleaseResValues UP-TO-DATE
generateReleaseResValues took 0.003000000 seconds
:mixpanel-android-4.9.0:generateReleaseResources UP-TO-DATE
generateReleaseResources took 0.001000000 seconds
:mixpanel-android-4.9.0:mergeReleaseResources UP-TO-DATE
mergeReleaseResources took 0.332000000 seconds
:mixpanel-android-4.9.0:processReleaseManifest UP-TO-DATE
processReleaseManifest took 0.008000000 seconds
:mixpanel-android-4.9.0:processReleaseResources UP-TO-DATE
processReleaseResources took 0.036000000 seconds
:mixpanel-android-4.9.0:generateReleaseSources UP-TO-DATE
generateReleaseSources took 0.001000000 seconds
:mixpanel-android-4.9.0:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
incrementalReleaseJavaCompilationSafeguard took 0.002000000 seconds
:mixpanel-android-4.9.0:javaPreCompileRelease
javaPreCompileRelease took 0.001000000 seconds
:mixpanel-android-4.9.0:compileReleaseJavaWithJavac UP-TO-DATE
compileReleaseJavaWithJavac took 0.045000000 seconds
:mixpanel-android-4.9.0:extractReleaseAnnotations UP-TO-DATE
extractReleaseAnnotations took 0.016000000 seconds
:mixpanel-android-4.9.0:mergeReleaseShaders UP-TO-DATE
mergeReleaseShaders took 0.003000000 seconds
:mixpanel-android-4.9.0:compileReleaseShaders UP-TO-DATE
compileReleaseShaders took 0.008000000 seconds
:mixpanel-android-4.9.0:generateReleaseAssets UP-TO-DATE
generateReleaseAssets took 0.002000000 seconds
:mixpanel-android-4.9.0:mergeReleaseAssets UP-TO-DATE
mergeReleaseAssets took 0.004000000 seconds
:mixpanel-android-4.9.0:mergeReleaseProguardFiles UP-TO-DATE
mergeReleaseProguardFiles took 0.001000000 seconds
:mixpanel-android-4.9.0:packageReleaseRenderscript NO-SOURCE
packageReleaseRenderscript took 0.002000000 seconds
:mixpanel-android-4.9.0:packageReleaseResources UP-TO-DATE
packageReleaseResources took 0.049000000 seconds
:mixpanel-android-4.9.0:processReleaseJavaRes NO-SOURCE
processReleaseJavaRes took 0.007000000 seconds
:mixpanel-android-4.9.0:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
transformResourcesWithMergeJavaResForRelease took 0.010000000 seconds
:mixpanel-android-4.9.0:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
transformClassesAndResourcesWithSyncLibJarsForRelease took 0.008000000 seconds
:mixpanel-android-4.9.0:mergeReleaseJniLibFolders UP-TO-DATE
mergeReleaseJniLibFolders took 0.003000000 seconds
:mixpanel-android-4.9.0:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
transformNativeLibsWithMergeJniLibsForRelease took 0.009000000 seconds
:mixpanel-android-4.9.0:transformNativeLibsWithStripDebugSymbolForRelease UP-TO-DATE
transformNativeLibsWithStripDebugSymbolForRelease took 0.014000000 seconds
:mixpanel-android-4.9.0:transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
transformNativeLibsWithSyncJniLibsForRelease took 0.007000000 seconds
:mixpanel-android-4.9.0:bundleRelease UP-TO-DATE
bundleRelease took 0.034000000 seconds
:baymax:prepareDevelopmentDebugDependencies
prepareDevelopmentDebugDependencies took 0.002000000 seconds
:baymax:compileDevelopmentDebugRenderscript UP-TO-DATE
compileDevelopmentDebugRenderscript took 0.020000000 seconds
:baymax:generateDevelopmentDebugResValues UP-TO-DATE
generateDevelopmentDebugResValues took 0.003000000 seconds
:baymax:processDevelopmentDebugGoogleServices
Parsing json file: /Users/mwajeeh/android/baymax/src/debug/google-services.json
processDevelopmentDebugGoogleServices took 0.010000000 seconds
:baymax:generateDevelopmentDebugResources
generateDevelopmentDebugResources took 0E-9 seconds
:baymax:mergeDevelopmentDebugResources UP-TO-DATE
mergeDevelopmentDebugResources took 0.700000000 seconds
:baymax:dataBindingProcessLayoutsDevelopmentDebug UP-TO-DATE
dataBindingProcessLayoutsDevelopmentDebug took 0.277000000 seconds
:baymax:buildInfoDevelopmentDebugLoader
buildInfoDevelopmentDebugLoader took 0.016000000 seconds
:baymax:compileDevelopmentDebugAidl UP-TO-DATE
compileDevelopmentDebugAidl took 0.064000000 seconds
:baymax:nodeSetup UP-TO-DATE
nodeSetup took 0.445000000 seconds
:baymax:installApolloCodegen
apollo-android@0.0.1 /Users/mwajeeh/android/baymax
-- apollo-codegen@0.10.5
`**installApolloCodegen took 17.282000000 seconds**<<<<<<<<<<<<`
:baymax:generateDevelopmentDebugApolloIR UP-TO-DATE
generateDevelopmentDebugApolloIR took 0.015000000 seconds
:baymax:generateDevelopmentDebugApolloClasses UP-TO-DATE
generateDevelopmentDebugApolloClasses took 0.008000000 seconds
:baymax:generateDevelopmentDebugBuildConfig
generateDevelopmentDebugBuildConfig took 0.023000000 seconds
:baymax:processDevelopmentArm64-v8aDebugManifest
processDevelopmentArm64-v8aDebugManifest took 0.462000000 seconds
:baymax:processDevelopmentArm64-v8aDebugResources UP-TO-DATE
processDevelopmentArm64-v8aDebugResources took 0.085000000 seconds
:baymax:processDevelopmentArmeabi-v7aDebugManifest
processDevelopmentArmeabi-v7aDebugManifest took 0.386000000 seconds
:baymax:processDevelopmentArmeabi-v7aDebugResources UP-TO-DATE
processDevelopmentArmeabi-v7aDebugResources took 0.173000000 seconds
:baymax:processDevelopmentUniversalDebugManifest
processDevelopmentUniversalDebugManifest took 0.591000000 seconds
:baymax:processDevelopmentUniversalDebugResources UP-TO-DATE
processDevelopmentUniversalDebugResources took 0.100000000 seconds
:baymax:processDevelopmentX86DebugManifest
processDevelopmentX86DebugManifest took 0.416000000 seconds
:baymax:processDevelopmentX86DebugResources UP-TO-DATE
processDevelopmentX86DebugResources took 0.082000000 seconds
:baymax:processDevelopmentX86_64DebugManifest
processDevelopmentX86_64DebugManifest took 0.461000000 seconds
:baymax:processDevelopmentX86_64DebugResources UP-TO-DATE
processDevelopmentX86_64DebugResources took 0.161000000 seconds
:baymax:generateDevelopmentDebugSources
generateDevelopmentDebugSources took 0.006000000 seconds
:baymax:dataBindingExportBuildInfoDevelopmentDebug
dataBindingExportBuildInfoDevelopmentDebug took 0.201000000 seconds
:baymax:incrementalDevelopmentDebugJavaCompilationSafeguard
`**incrementalDevelopmentDebugJavaCompilationSafeguard took 1.952000000 seconds**<<<<<<<<<<<<<<<<<<<<`
:baymax:javaPreCompileDevelopmentDebug
javaPreCompileDevelopmentDebug took 0.010000000 seconds
:baymax:transformClassesAndDataBindingWithDataBindingMergeArtifactsForDevelopmentDebug UP-TO-DATE
transformClassesAndDataBindingWithDataBindingMergeArtifactsForDevelopmentDebug took 0.212000000 seconds
:baymax:compileDevelopmentDebugJavaWithJavac
....
couple of warnings about "View field image collides with a variable or import"
25 warnings
...
`**compileDevelopmentDebugJavaWithJavac took 106.659000000 seconds**<<<<<<<<<<<<<<<<<<<<`
:baymax:mergeDevelopmentDebugShaders UP-TO-DATE
mergeDevelopmentDebugShaders took 0.044000000 seconds
:baymax:compileDevelopmentDebugShaders UP-TO-DATE
compileDevelopmentDebugShaders took 0.023000000 seconds
:baymax:generateDevelopmentDebugAssets UP-TO-DATE
generateDevelopmentDebugAssets took 0.016000000 seconds
:baymax:mergeDevelopmentDebugAssets UP-TO-DATE
mergeDevelopmentDebugAssets took 0.248000000 seconds
:baymax:processDevelopmentDebugJavaRes NO-SOURCE
processDevelopmentDebugJavaRes took 0.002000000 seconds
:baymax:transformResourcesWithMergeJavaResForDevelopmentDebug UP-TO-DATE
transformResourcesWithMergeJavaResForDevelopmentDebug took 0.036000000 seconds
:baymax:packageInstantRunResourcesDevelopmentArm64-v8aDebug UP-TO-DATE
packageInstantRunResourcesDevelopmentArm64-v8aDebug took 0.155000000 seconds
:baymax:fastDeployDevelopmentDebugExtractor UP-TO-DATE
fastDeployDevelopmentDebugExtractor took 0.006000000 seconds
:baymax:generateDevelopmentDebugInstantRunAppInfo UP-TO-DATE
generateDevelopmentDebugInstantRunAppInfo took 0.044000000 seconds
:baymax:checkManifestChangesDevelopmentDebug
checkManifestChangesDevelopmentDebug took 0.025000000 seconds
:baymax:transformClassesWithExtractJarsForDevelopmentDebug UP-TO-DATE
transformClassesWithExtractJarsForDevelopmentDebug took 0.051000000 seconds
:baymax:transformClassesWithRealmTransformerForDevelopmentDebug
transformClassesWithRealmTransformerForDevelopmentDebug took 30.824000000 seconds
:baymax:transformClassesWithInstantRunVerifierForDevelopmentDebug
transformClassesWithInstantRunVerifierForDevelopmentDebug took 0.526000000 seconds
:baymax:transformClassesWithDependencyCheckerForDevelopmentDebug UP-TO-DATE
transformClassesWithDependencyCheckerForDevelopmentDebug took 0.039000000 seconds
:baymax:compileDevelopmentDebugNdk NO-SOURCE
compileDevelopmentDebugNdk took 0.018000000 seconds
:baymax:mergeDevelopmentDebugJniLibFolders UP-TO-DATE
mergeDevelopmentDebugJniLibFolders took 0.012000000 seconds
:baymax:transformNativeLibsWithMergeJniLibsForDevelopmentDebug UP-TO-DATE
transformNativeLibsWithMergeJniLibsForDevelopmentDebug took 0.075000000 seconds
:baymax:transformNativeLibsAndResourcesWithJavaResourcesVerifierForDevelopmentDebug UP-TO-DATE
transformNativeLibsAndResourcesWithJavaResourcesVerifierForDevelopmentDebug took 0.008000000 seconds
:baymax:transformClassesWithInstantRunForDevelopmentDebug
`**transformClassesWithInstantRunForDevelopmentDebug took 1.158000000 seconds**<<<<<<<<<<<<<<<<<<<<`
:baymax:transformClassesEnhancedWithInstantReloadDexForDevelopmentDebug
transformClassesEnhancedWithInstantReloadDexForDevelopmentDebug took 0.052000000 seconds
:baymax:incrementalDevelopmentDebugTasks
incrementalDevelopmentDebugTasks took 0.019000000 seconds
:baymax:preColdswapDevelopmentDebug
preColdswapDevelopmentDebug took 0.004000000 seconds
:baymax:transformClassesWithInstantRunSlicerForDevelopmentDebug
transformClassesWithInstantRunSlicerForDevelopmentDebug took 0.974000000 seconds
:baymax:transformClassesWithDexForDevelopmentDebug
`**transformClassesWithDexForDevelopmentDebug took 29.440000000 seconds****<<<<<<<<<<<<<<<<<<<<`
:baymax:validateSigningDevelopmentArm64-v8aDebug
validateSigningDevelopmentArm64-v8aDebug took 0.007000000 seconds
:baymax:transformDexWithInstantRunDependenciesApkForDevelopmentDebug
transformDexWithInstantRunDependenciesApkForDevelopmentDebug took 0.077000000 seconds
:baymax:transformDexWithInstantRunSlicesApkForDevelopmentDebug
`**transformDexWithInstantRunSlicesApkForDevelopmentDebug took 1.007000000 seconds**<<<<<<<<<<<<<<<<<<<<`
:baymax:transformNativeLibsWithStripDebugSymbolForDevelopmentDebug UP-TO-DATE
transformNativeLibsWithStripDebugSymbolForDevelopmentDebug took 0.018000000 seconds
:baymax:packageDevelopmentArm64-v8aDebug UP-TO-DATE
packageDevelopmentArm64-v8aDebug took 0.249000000 seconds
:baymax:buildInfoGeneratorDevelopmentDebug
buildInfoGeneratorDevelopmentDebug took 0.022000000 seconds
:baymax:assembleDevelopmentArm64-v8aDebug UP-TO-DATE
assembleDevelopmentArm64-v8aDebug took 0.008000000 seconds
:baymax:compileDevelopmentDebugSources
compileDevelopmentDebugSources took 0.003000000 seconds
:baymax:assembleDevelopmentDebug
assembleDevelopmentDebug took 0.001000000 seconds
BUILD SUCCESSFUL in 3m 28s
147 actionable tasks: 96 executed, 51 avoided (35%)
最佳答案
这个视频真的很有帮助 https://www.youtube.com/watch?v=7ll-rkLCtyk我减少了构建时间。有一篇与此视频相关的优秀博客文章:https://android.jlelse.eu/how-to-speed-up-your-slow-gradle-builds-5d9a9545f91a
我做了以下事情来提高速度:
在开发中禁用 abi splits(只有在基于 CPU 架构创建不同的 apk 时才需要这样做):
splits {
abi {
enable !project.hasProperty('devBuild')
}
}
在开发中禁用 png cruncher:
android {
if (project.hasProperty('devBuild')) {
aaptOptions.cruncherEnabled = false
}
}
不要每次点击运行时都修改BuildConfig
:
def gitSha = project.hasProperty('devBuild') ? "gitSha_devBuild" : 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def buildTime = project.hasProperty('devBuild') ? "buildTime_devBuild" : new Date().format("yyyy-MM-dd'T'HH:mm'Z'", TimeZone.getTimeZone("UTC"))
然后是:
buildConfigField "String", "GIT_SHA", "\"${gitSha}\""
buildConfigField "String", "BUILD_TIME", "\"${buildTime}\""
在开发期间针对 minSdkVersion
21 构建并且仅针对您在开发设备中需要的资源(在我的例子中是“en”和“xxhdpi” ):
productFlavors {
fast {
// Enable pre-dexing to produce an APK that can be tested on
// Android 5.0+ without the time-consuming DEX build processes.
minSdkVersion 21
//only package english translations, and xxhdpi resources
resConfigs("en", "xxhdpi")
}
slow {
// The actual minSdkVersion for the production version.
minSdkVersion 16
}
}
移动到com.android.tools.build.gradle:3.X.X
现在我的构建速度从 10 秒到 1 分钟不等!
关于Android Studio 即时运行问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44458164/
好的,所以我想从批处理文件运行我的整个工作环境... 我想要实现什么...... 打开新的 powershell,打开我的 API 文件夹并从该文件夹运行 VS Code 编辑器(cd c:\xy;
我正在查看 Cocoa Controls 上的示例并下载了一些演示。我遇到的问题是一些例子,比如 BCTabBarController ,不会在我的设备上构建或启动。当我打开项目时,它看起来很正常,没
我刚刚开始学习 C 语言(擅长 Java 和 Python)。 当编写 C 程序(例如 hello world)时,我在 ubuntu cmd 行上使用 gcc hello.c -o hello 编译
我在 php 脚本从 cron 开始运行到超时后注意到了这个问题,但是当它从命令行手动运行时这不是问题。 (对于 CLI,PHP 默认的 max_execution_time 是 0) 所以我尝试运行
我可以使用命令行运行测试 > ./node_modules/.bin/wdio wdio.conf.js 但是如果我尝试从 IntelliJ 的运行/调试配置运行它,我会遇到各种不同的错误。 Fea
Error occurred during initialization of VM. Could not reserve enough space for object heap. Error: C
将 Anaconda 安装到 C:\ 后,我无法打开 jupyter 笔记本。无论是在带有 jupyter notebook 的 Anaconda Prompt 中还是在导航器中。我就是无法让它工作。
我遇到一个问题,如果我双击我的脚本 (.py),或者使用 IDLE 打开它,它将正确编译并运行。但是,如果我尝试在 Windows 命令行中运行脚本,请使用 C:\> "C:\Software_Dev
情况 我正在使用 mysql 数据库。查询从 phpmyadmin 和 postman 运行 但是当我从 android 发送请求时(它返回零行) 我已经记录了从 android 发送的电子邮件是正确
所以这个有点奇怪 - 为什么从 Java 运行 .exe 文件会给出不同的输出而不是直接运行 .exe。 当 java 在下面的行执行时,它会调用我构建的可与 3CX 电话系统配合使用的 .exe 文
这行代码 Environment.Is64BitProcess 当我的应用单独运行时评估为真。 但是当它在我的 Visual Studio 单元测试中运行时,相同的表达式的计算结果为 false。 我
关闭。这个问题是opinion-based .它目前不接受答案。 想要改进这个问题? 更新问题,以便 editing this post 可以用事实和引用来回答它. 关闭 8 年前。 Improve
我写了一个使用 libpq 连接到 PostgreSQL 数据库的演示。 我尝试通过包含将 C 文件连接到 PostgreSQL #include 在我将路径添加到系统变量 I:\Program F
如何从 Jenkins 运行 Android 模拟器来运行我的测试?当我在 Execiute Windows bath 命令中写入时,运行模拟器的命令: emulator -avd Tester 然后
我已经配置好东西,这样我就可以使用 ssl 登录和访问在 nginx 上运行的 errbit 我的问题是我不知道如何设置我的 Rails 应用程序的 errbit.rb 以便我可以运行测试 nginx
我编写了 flutter 应用程序,我通过 xcode 打开了 ios 部分并且应用程序正在运行,但是当我通过 flutter build ios 通过 vscode 运行应用程序时,我得到了这个错误
我有一个简短的 python 脚本,它使用日志记录模块和 configparser 模块。我在Win7下使用PyCharm 2.7.1和Python 3.3。 当我使用 PyCharm 运行我的脚本时
我在这里遇到了一些难题。 我的开发箱是 64 位的,windows 7。我所有的项目都编译为“任何 CPU”。该项目引用了 64 位版本的第 3 方软件 当我运行不使用任何 Web 引用的单元测试时,
当我注意到以下问题时,我正在做一些 C++ 练习。给定的代码将不会在 Visual Studio 2013 或 Qt Creator 5.4.1 中运行/编译 报错: invalid types 'd
假设我有一个 easteregg.py 文件: from airflow import DAG from dateutil import parser from datetime import tim
我是一名优秀的程序员,十分优秀!