Android gradle build script returns error 137 in preDexDebug

前端 未结 2 1445
一生所求
一生所求 2020-12-19 23:02

I am trying to build an Android project on our Debian build server with gradlew.

Each time I run it the build fails on the preDexDebug step with error 137 and the f

相关标签:
2条回答
  • 2020-12-19 23:33

    Yes, I have met this issue. I found out the problem is that dx.bat could not run because of config memory error. Change "set defaultXmx=-Xmx1024m" to "set defaultXmx=-Xmx512m" and run again. Ref link I found it: https://code.google.com/p/vs-android/issues/detail?id=15. Hope this help.

    0 讨论(0)
  • 2020-12-19 23:35

    The problem was due to memory problems on the build server. Switching to a build server with more memory has fixed the problem.

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