加入谷歌游戏服务项目后,无法运行的项目 [英] Can not run project after adding google play services to project
问题描述
我想提出一个Android应用程序与需求的谷歌地图。
I am making a android application with needs google map.
我创建Eclipse的一个新项目,并编译它的Android手机,它的工作,但是当我导入谷歌播放-services_lib到我的工作区,并增加了一个提到它在我的项目,它并不能编译,挂断与状态栏显示(项目推出的100%),一段时间,并显示错误无法执行DEX:Java堆空间
I created a new project in eclipse and compiled it on an android phone, it worked, but when I import the google-play-services_lib to my workspace and added a reference to it in my project, it doesn't compile, hangs up for a while with the status bar showing (launching project 100%) and displays an error "Unable to execute dex: Java heap space"
更新: 我也试图改变eclipse.ini文件,以增加空间限制为512和1024,但没有使用
Update: I also tried changing the eclipse.ini file to increase memory limit to 512 and 1024, but no use
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m
PS:张贴问题之前,搜索了很多
PS: searched alot before posting a question
推荐答案
<一个href="http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex-java-heap-space">Conversion到的Dalvik格式失败:无法执行DEX:Java堆空间
的要点是:不断增加的在XMS,XMX值,直到它的作品,或者你用完物理内存
The gist is: Keep increasing the Xms and Xmx values until it either works or you run out of physical memory.
在的eclipse.ini
in eclipse.ini
例如:
-XX:MaxPermSize =1536米
-Dosgi.requiredJavaVersion = 1.5
-Xms40m
-Xmx1536m
E.g.:
-XX:MaxPermSize=1536m
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1536m
这篇关于加入谷歌游戏服务项目后,无法运行的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!