SDK Update 60 -> 63/64: Error encountered. Aborting

Hi there,

I'm wondering if anyone tried to update to the latest SDK (63 or 64)?
The thing is that we are trying to update it from version 60.0.732-1.4.2-2 to version 63.0.741-1.4.2-2 or 64.0.744-1.4.2-2, however, the process interrupts on "Starting 'app-icons-android' with the error "Error encountered. Aborting!".

It happens when updating the app (./sdk init-native) as well as when generating a new one ($SUGAR_MOBILE_SDK_HOME/<version>/sdk/generate-app).

Homebrew and node are updated to the latest version
jdk-11.0.19

There is no further explanation in the logs, only "Error encountered. Aborting!".



Has anyone run into the same problem and maybe addressed it?

Thank you.

Parents Reply
  • I'll give you some tips how you can debug failing script on your machine

    1. after you have encountered this error you will have {yourapp} or {yourapp}/Sample folder created. from this folder copy 'config' folder to you sdk installation folder

    2. in your sdk install folder  you have a gulp task named 'app-icons-android' that seems to be failing. this is essentially a node process that you need to debug

    here is my VSCode run configuration to do this (this is an equivalent of './gulp app-icons-android' console command)

    {
    "name": "Run a gulp task",
    "type": "node",
    "request": "launch",
    "program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js",
    "stopOnEntry": false,
    "args": ["app-icons-android"],
    "cwd": "${workspaceRoot}",
    // "runtimeArgs": [
    // "--nolazy"
    // ],
    "console": "internalConsole"
    },
    3. put a breakpoint into app-icons.mjs and from here you can debug your error
    i hope this helps!
Children
No Data