Android Studio - Issue in build.gradle uncaught translation error ExecutionException OutOfMemory

后端 未结 1 1127
醉话见心
醉话见心 2021-02-19 17:40

I am having a strange problem with my Android app in Android Studio. Everything seemed to be working fine, until today after adding some new files and making some updat

相关标签:
1条回答
  • 2021-02-19 18:11

    Try to run your script with this option in your android closure:

    dexOptions {
        javaMaxHeapSize "4g"
    }
    

    This will increase the maximum heap size for dex operations. You can find some explanation in this SO question

    0 讨论(0)
提交回复
热议问题