错误提示:
:transformClassesWithDexForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
环境:android studio2.2
//build.gradle设置一下项目
defaultConfig {
applicationId "com.application.packageName"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled true //设置为true(重点)
}
dexOptions {
preDexLibraries false
jumboMode true
javaMaxHeapSize "4g"//增加编译内存
}