【问题标题】:GC overhead limit exceeded with google play services谷歌播放服务超出了 GC 开销限制
【发布时间】:2015-08-29 17:27:41
【问题描述】:

我正在尝试在 Eclipse 和 ubuntu 64 位平台上运行我的 android 项目。一切顺利,但是当我将 Google play Services 添加到项目时出现了一个大问题。

1.运行安卓应用,CPU负载高。

  1. Eclipse 显示错误消息“超出 GC 开销限制”。

  1. 最后关闭 Eclipse。

从我的项目中删除 google play 后,它可以正常运行。

【问题讨论】:

    标签: android google-play-services


    【解决方案1】:

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

    查看Selectively compiling APIs into your executable页面

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-05-21
        • 2017-06-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-12-27
        相关资源
        最近更新 更多