在ubuntu上构建时出现Nativescript错误

时间:2017-01-10 17:55:53

标签: ubuntu nativescript

我正在尝试在Android平台上使用nativescript构建一个应用程序。当我运行tns prepare android时一切顺利,但当我运行tns build android时,我一直收到此错误:

AILURE: Build completed with 2 failures.

1: Task failed with an exception.
* What went wrong:
    Execution failed for task ':transformClassesWithDexForF0Debug'.
        com.android.build.api.transform.TransformException:
        java.lang.RuntimeException: 
        com.android.ide.common.process.ProcessException:   
        java.util.concurrent.ExecutionException:
        com.android.ide.common.process.ProcessException:
        org.gradle.process.internal.ExecException:
    Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
* Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

2: Task failed with an exception.
* What went wrong:
    Execution failed for task ':buildMetadata'.
    Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 137

我正在运行的操作系统是ubuntu 14

1 个答案:

答案 0 :(得分:0)

我通过添加更多RAM内存来解决问题