解决错误java.lang.UnsupportedOperationException

遇到错误

 Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

> com.Android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException 

导致编译失败,加入一行代码就可以了。

 

dexOptions {
    javaMaxHeapSize "4g"
}

 

 

 

dexOptions {
    javaMaxHeapSize "4g"
}
compileSdkVersion 23
buildToolsVersion "24.0.1"
defaultConfig {
    applicationId "com.bruce.a123education"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    debug {
        signingConfig signingConfigs.edu123
    }
}
posted @ 2017-02-23 11:51  纯属浪费8818  阅读(7495)  评论(0编辑  收藏  举报