Android 方法数超过64k、编译OOM、编译过慢解决方案。
目前将项目中的leancloud的即时通讯改为环信的即时通讯。当引入easeui的时候 出现方法数超过上限的问题。 搜索一下问题,解决方法很简单。 这里简单记录一下,顺序记录一下此解决方案导致的另一个问题。 一、解决方法数超过64k的问题 问题描述: Error:The number of method references in a .dex file cannot exceed 64K. Error:Execution failed for task ':app:transformClassesWithDexForRelease'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 解决方案: 1、app目录下 build.gr...