ERROR: Dex writing phase: classes.dex has too many IDs. Try using multi-dex

原文链接:https://stackoverflow.com/questions/45472852/error-dex-writing-phase-classes-dex-has-too-many-ids-try-using-multi-dex

配置方法数超过64K的应用:https://developer.android.com/studio/build/multidex?hl=zh-cn

解决方法,在mk文件中添加以下两行代码:

LOCAL_DX_FLAGS := --multi-dex --main-dex-list=$(mainDexList) --minimal-main-dex
LOCAL_JACK_FLAGS += --multi-dex native

 

你可能感兴趣的:(编译,Java)