com.android.jack.CommandLine: Internal compiler error

Android studio编译的时候出现错误:

SEVERE: com.android.jack.CommandLine: Internal compiler error

Error:Execution failed for task ':app:transformJackWithJackForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Error while executing java process with main ...

 

解决办法:

gradle.properties文件中添加:

org.gradle.jvmargs=-Xmx2048m

 

posted @ 2017-04-14 16:53  飞剑  阅读(903)  评论(0编辑  收藏  举报