Libgdx编译错误

时间:2014-07-16 03:12:06

标签: libgdx

我在我的IDEA中安装了libgdx,如下所示:https://github.com/libgdx/libgdx

项目中没有可见的错误,但是当我尝试编译它时会给我一个错误:

Error:Android Dex: [android] Unable to execute DX 
Error:Android Dex: [android] com.android.dex.DexException: Cannot merge new index 68094 into a non-jumbo instruction!

另外我用google搜索它可能是由于少量的堆大小。然后我在Settings-> Compilers-> Android编译器中将它增加到3000,但它没有帮助

1 个答案:

答案 0 :(得分:0)

1)在Intellij IDEA中,我检查了旗帜"强制巨型模式"在Setting-> Compiler-> Android编译器

2)在project.properties文件中写了dex.force.jumbo=true,该文件位于android文件夹