最近开发中用到比较多的开源库,而开源项目中常常需要引入其他开源jar包,有些开源jar包比较大,在运行项目,elipse在编译的时候会报下面这个错误:
Unable to execute dex: Java heap space Java heap space
- 如何解决?
设置一下elpse:window =》Preferences=》Java=》Build Path=》User Libraries=》new user libraries=》随便写一个名字=》勾选System libraries(added to the boot class path)=》然后选中这个User Libraries=》Add JARS 把需要用到的包导入就行了
- 如何在项目中引用这个User Libraries
Properties=》Java Build Path=》Libraries=》Add Library=》User Library=》选中刚创建的User libraries