如果在Eclipse中将google-play-services.jar库添加到我的helloworld android项目中,则Android编译会冻结 [英] Android compilation freezes if google-play-services.jar lib is added into my helloworld android project in Eclipse

查看:152
本文介绍了如果在Eclipse中将google-play-services.jar库添加到我的helloworld android项目中,则Android编译会冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出我的android应用程序的google-play-services.jar错误的核心。
以前的链接此处此处。我浪费了整整两天来解决问题,但没有结果。即使我已经尝试在两台不同的机器上重新安装Eclipse和Android SDK,并在两个不同的设备上进行测试。但没有结果。最后一个实验给了我难以置信的错误:如果我只是将google-play-lib.jar添加到我的项目中,Eclipse不会为默认hello-world项目构建(不会创建apk文件)。没有更多的代码。 Google API已启用。我正在使用最新的eclipse版本SDK - 更新截图上的更新(24.1.2,22.0.1等)。

I'm trying to find out the core of the google-play-services.jar bug for my android app. The previous links are here and here. I've wasted 2 whole days to fix the problem but no result. Even I've tried to reinstall Eclipse, Android SDK in 2 different machines and tested on two different devices. But no result. The last experiment gave me incredible error: Eclipse doesn't build (doesn't create apk-file) for default hello-world project if I just add google-play-lib.jar into my project. No more code. Google API's are enabled. I'm using the last eclipse version, SDK - the lates updates (24.1.2, 22.0.1, etc.) more on screenshot.

截图解释了这个问题。我几分钟后eclipse崩溃!为什么??? Imazing!美丽!

The screenshot explains the problem. I'm few minutes later eclipse crashes! WHY??? Imazing! Beautifull!

错误文本:

The error text:

refreshing external folders blocked the user operation is waiting for background work to complete org.eclipse.jdt.croe.external.folders/.link0


推荐答案

这对你的Eclipse配置文件。手动增加Xms和Xmx。 U可以在Eclipse文件夹中找到这个文件,文件命名如下:eclipse.ini

It will freeze, so do this to ur eclipse config file. Increase the Xms and Xmx by doing it manually. U can find this file in Eclipse folder and file is named like this : eclipse.ini

所以Eclipse配置看起来应该是这样。

So the Eclipse config should look like this.

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m

这篇关于如果在Eclipse中将google-play-services.jar库添加到我的helloworld android项目中,则Android编译会冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆