Android Studio ignore --core-library flag

前端 未结 6 1007
盖世英雄少女心
盖世英雄少女心 2020-12-06 17:40

I have a project, which i want to configure on my computer.

On anothe computer it works, but with old version of Android Studio 0.4.0 whenever I use 0.5.2

Th

6条回答
  •  囚心锁ツ
    2020-12-06 18:01

    I think we cannot enable --core-library via dexOptions.

    We know that dexOptions delegated to a com.android.build.gradle.internal.dsl.DexOptions object, which implements com.android.builder.core.DexOptions.

    From the source code, we know it doesn't support --core-library.

    From Issue 79280: dexOptions in gradle plugin don't support coreLibrary

    You can do it manually by

    • disable pre-dexing (this is because our cache would have issues if we allow adding extra params)
    • modify the Dex tasks to add --core-library as an extra parameters.

提交回复
热议问题