2014-07-16 67 views
0

我安装libgdx我的想法,因为它写在这里:https://github.com/libgdx/libgdxLibgdx编译错误

项目没有明显的错误,但是当我试图编译它给我一个错误:

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搜索可能会导致堆的大小很小。然后,我在的IntelliJ IDEA增加它在设置 - > Compilers-> Android的编译器3000,但它并没有帮助

+0

LibGDX现在只是OpenGL ES 2.0,所以不太可能在仿真器上很好地工作。如果您没有在物理设备上测试,我建议使用Genymotion之类的东西。 – Tenfour04

+0

不,我正在使用手机进行测试。但是,为什么你写关于模拟器?在我选择设备之前,这个错误会导致编译步骤。 – Aleksandrs

回答

0

1)我检查标志“强制巨型模式”设置 - >反编译> Android的编译器

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