Android gradle build script returns error 137 in preDexDebug

前端 未结 2 1452
一生所求
一生所求 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.

提交回复
热议问题