Ionic3 android build命令不起作用 - 致命错误:CALL_AND_RETRY_LAST分配失败 - JavaScript堆内存不足 [英] Ionic3 android build command not working - FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

查看:540
本文介绍了Ionic3 android build命令不起作用 - 致命错误:CALL_AND_RETRY_LAST分配失败 - JavaScript堆内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的离子3应用程序在离子服务中运行良好,但在进行构建时,它会一直停止并出现以下错误

My ionic 3 application working fine in Ionic serve , But when taking build it’s keep on stops with the following error

==== JS stack trace =========================================
Security context: 000000200D3CFB49 <JS Object>
    1: DoJoin(aka DoJoin) [native array.js:~129] [pc=00000315AEFE6C02] (this=000000200D304381 <undefined>,w=000000FF69DCAE69 <JS Array[414]>,x=414,N=000000200D3043C1 <true>,J=000000200D3AE4C9 <String[1]:  >,I=000000200D3B46D9 <JS Function ConvertToString (SharedFunctionInfo 000000200D352DC9)>)
2: Join(aka Join) [native array.js:180] [pc=00000315AEFFA292] (this=000000200D304381 <undefined>...

 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

和我的离子信息

@ionic/cli-utils  : 1.10.2
  ionic (Ionic CLI) : 3.10.3

global packages:

  Cordova CLI : 7.0.1

local packages:

  @ionic/app-scripts : 2.1.4
  Cordova Platforms  : android 6.2.3
  Ionic Framework    : ionic-angular 3.6.1

System:

  Android SDK Tools : 24.4.1
  Node              : v6.10.3
  npm               : 3.10.10
  OS                : Windows 7

提前致谢

推荐答案

我已修复了以下步骤的问题:

I have fixed the issue with these steps :


  1. 在环境变量路径中添加C:\ Windows \ System32

  2. 删除平台离子cordova平台rm android

  3. 使用cordova添加平台 cordova platform添加android

  4. 通过离子cordova运行安卓
  5. 进行构建
  6. 检查项目中生成的Apk, Ex:D:\ Ionic3 \\\tiftify\platforms\android\build\outputs\APK

  1. Add "C:\Windows\System32" in Environment Environment variable Path .
  2. Remove Platform by ionic cordova platform rm android
  3. Add Platform using cordova by cordova platform add android
  4. Take build by ionic cordova run android
  5. Check generated Apk in your project , Ex : D:\Ionic3\testify\platforms\android\build\outputs\apk

我希望这是一个最新离子版引起的问题,谢谢所有

I hope this is a problem caused by latest ionic version , Thanks all

这篇关于Ionic3 android build命令不起作用 - 致命错误:CALL_AND_RETRY_LAST分配失败 - JavaScript堆内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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