遇到错误

 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
    }
}

相关文章:

  • 2021-11-06
  • 2021-10-16
  • 2021-12-10
  • 2021-12-09
  • 2021-06-11
猜你喜欢
  • 2021-09-11
  • 2021-08-17
  • 2021-10-07
  • 2021-11-13
  • 2021-09-01
  • 2021-07-19
相关资源
相似解决方案