如果谷歌播放-services.jar lib添加到Eclipse中我的HelloWorld Android项目的Android complation冻结 [英] Android complation freezes if google-play-services.jar lib is added into my helloworld android project in Eclipse
问题描述
我想findout谷歌的播放,services.jar错误的核心我的Android应用程序。 在previous链接<一个href="http://stackoverflow.com/questions/29903978/java-lang-noclassdeffounderror-for-any-google-play-services-feature">here和<一href="http://stackoverflow.com/questions/29898396/java-lang-noclassdeffounderror-com-google-android-gms-gcm-googlecloudmessaging">here.我已经浪费了2整天来解决这个问题,但没有结果。即使我已经tryed重新安装的Eclipse,Android SDK中的2个不同的机器上的两个不同的设备进行测试。但没有结果。最后的实验给了我难以置信的错误:Eclipse的犯规构建(犯规创建APK文件)的默认你好世界的项目,如果我只需要添加谷歌播放-lib.jar到我的项目。没有更多的code。谷歌API的启用。我用最后的Eclipse版本,SDK - 的鲈更新(24.1.2,22.0.1等),更多的截图。
截图说明问题。我几分钟后偏食崩溃!为什么??? Imazing!美丽!
错误文本:
刷新外部文件夹挡住了用户的操作正在等待后台工作完成org.eclipse.jdt.croe.external.folders / .link0
它会结冰,所以这样做是为了UR蚀配置文件。通过做手工增加在XMS,XMX。 U可以发现在Eclipse文件夹中文件和文件被命名为这样的:的eclipse.ini
所以Eclipse的配置应该是这样的。
-startup
插件/ org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
插件/ org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-产品
org.eclipse.epp.package.java.product
--launcher.defaultAction
打开文件
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256米
--launcher.defaultAction
打开文件
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion = 1.6
-Xms256m
-Xmx1024m
I'm trying to findout 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 tryed 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 doesnt build (doesnt 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.
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
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
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
这篇关于如果谷歌播放-services.jar lib添加到Eclipse中我的HelloWorld Android项目的Android complation冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!