Android的工作室摇篮问题:的OutOfMemoryError:PermGen的空间 [英] Android Studio Gradle Issue: OutOfMemoryError: PermGen space

查看:178
本文介绍了Android的工作室摇篮问题:的OutOfMemoryError:PermGen的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在几个小时的战斗,以获得从Eclipse的进口用摇篮,进入Android的工作室v0.1.3旧的项目......我已经得到了现在的我居然可以做构建在命令行上,但是当我构建/重建项目的的工作室,我得到:

After several hours of fighting to get an older project imported from Eclipse to use Gradle and into Android Studio v0.1.3...what I've gotten to now is I can actually do the build on the command line, but when I do Build/Rebuild Project in Studio I get:

Gradle: 

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':EpicMix'.
> Failed to notify project evaluation listener.
   > A problem occurred configuring project ':facebook'.
      > Failed to notify project evaluation listener.
         > java.lang.OutOfMemoryError: PermGen space

这不是一个庞大的工程,有几个小分项目(包括Facebook),所以我不认为这真的是内存。我只是想不通这是什么...

It's not a HUGE project, there's a few small sub-projects (including Facebook), so I don't think it really is memory. I just can't figure out what this is...

推荐答案

对于那些你在命令行中运行gradle这个,创建一个 gradle.properties 文件,把它放在你的项目的根,并添加以下内容:

For those of you running gradle from the command line, create a gradle.properties file, put it in the root of your project, and add the following:

org.gradle.jvmargs=-XX:MaxPermSize=512m

这篇关于Android的工作室摇篮问题:的OutOfMemoryError:PermGen的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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