android - 如何使用 Android dexOptions?

标签 android android-gradle-plugin

dexOptions.incremental等是什么意思 任何机构都可以向我解释。

dex options

android {
    dexOptions {
        incremental false
        preDexLibraries = false
        jumboMode = false
        javaMaxHeapSize "2048M"
    }
}
This affects all tasks using dex.

最佳答案

boolean incremental

Whether to enable the incremental mode for dx. This has many limitations and may not work. Use carefully.

String javaMaxHeapSize

Sets the -JXmx* value when calling dx. Format should follow the 1024M pattern.

boolean jumboMode

Enable jumbo mode in dx (--force-jumbo).

boolean preDexLibraries

Whether to pre-dex libraries. This can improve incremental builds, but clean builds may be slower.

这些可以在这里找到:
http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html

关于android - 如何使用 Android dexOptions?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28927255/

相关文章:

java - 如何获取json数组的最大值

android - HTML 网站导航菜单向后翻转

安卓消息框

android - Multi Flavor 应用中,如何避免重复资源

android - 如何修复错误 Gradle DSL 方法未找到 : 'compile()' ?

android - whereNear 查询在 Parse 中似乎无法正常工作

java - getIntent()用红色写成

android - 无法从 aar 访问类

android - minSdkVersion不能小于库support-v4 :26.0.0-alpha1 Manifest Merger Failed中声明的版本14

android - 在 android 上使用 com.bea.xml.stream 包