谷歌播放服务超出了GC开销限制

时间:2015-06-13 23:14:52

标签: android google-play-services

我试图在eclipse和平台ubuntu 64位上运行我的android项目。一切顺利,但当我向项目添加Google Play服务时出现了一个大问题。

1.运行Android应用程序,高CPU负载。

enter image description here

  1. Eclipse显示错误消息“超出GC开销限制”。
  2. enter image description here

    1. 最后关闭Eclipse。
    2. enter image description here

      从我的项目中移除谷歌播放时,它可以很好地运行。

      enter image description here

2 个答案:

答案 0 :(得分:1)

我建议使用android studio而不是eclipse https://developer.android.com/sdk/index.html

但是,您也可以尝试使用更多内存启动eclipse:How can I give eclipse more memory than 512M?

答案 1 :(得分:0)

您是否添加了从Google Play服务到项目的所有内容?如果是这样,我建议您仅依赖项目实际使用的API。

请参阅Selectively compiling APIs into your executable页面