I have quite big multi module, multi flavor multidex project, but recently I got error when trying to do command line build (assemble{flavor}Release)
Message is:
Disabling keeping runtime annoted classes may help. Just put it in android{} section of every module gradle file
dexOptions { preDexLibraries = false keepRuntimeAnnotatedClasses false }
Usually this happens when in project heavely used dagger2