什么是“增量 Dex"?选项在 Android Studio 中做什么? [英] What does the "Incremental Dex" option in Android Studio do?

查看:28
本文介绍了什么是“增量 Dex"?选项在 Android Studio 中做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Android Studio 中,当您在项目结构"窗口中选择一个模块时,在属性"选项卡下有一个选项可以将增量 Dex"设置为 true 或 false.它究竟有什么作用,应该在什么时候使用?

In Android Studio, when you select a module in Project Structure window, under Properties tab there is an option to set "Incremental Dex" to true or false. What exactly does it do, and when should it be used?

推荐答案

它类似于增量构建,它仅在输入文件已被修改时通过构建来重新构建其输出.减少构建时间很有用.

It is similar to incremental build, which re-builds its outputs by only building if an input file has been modified. It is useful to reduce the build time.

只对修改后的模块的dex文件进行重新计算并重新打包成APK文件"取自 https://developer.android.com/tools/building/multidex.html

"only the dex files of modified modules are recomputed and repackaged into the APK file" taken from https://developer.android.com/tools/building/multidex.html

这篇关于什么是“增量 Dex"?选项在 Android Studio 中做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆