Error while building apk file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40750

    S Surendran
    Participant

    Hi,

    Facing error while building apk file..

    When i run ionic cordova build android..It shows an

    Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed

    at process.target.send (internal/child_process.js:650:16)

    at taskReject (/Users/richard/Documents/wplms2/node_modules/@ionic/app-scripts/dist/worker-process.js:45:13)

    at /Users/richard/Documents/wplms2/node_modules/@ionic/app-scripts/dist/worker-process.js:14:13

    Emitted ‘error’ event at:

    at process.nextTick (internal/child_process.js:654:35)

    at processTicksAndRejections (internal/process/next_tick.js:74:9)

    #40973

    Scott Lang
    Keymaster

    Hi,

    Is ionic serve command working in your end ? if yes then it will be app build error or platform not configured properly.

    Please try to remove the platform ionic cordova platform remove android and add again ionic cordova platform remove android then build the app.

    Also here is our package.json file for dependencies: https://slack-files.com/T06A5EFRU-FRNFZ0KCM-94dc16afd0 .

    First, you need to backup your package.json and rename node_modules to any name. Then replace package.json to our pacake.json and run npm install.  It will create a new node_module folder and then run ionic serve and build command.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.