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 Children
  • 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!
  • Hi Anastasiia Gubanovych, Have you manage to run app-icon-android task as Eugene suggested? I think there could be an issue with library we used for that task. It's called sharp. https://www.npmjs.com/package/sharp that one. Documentation says that "Most modern macOS, Windows and Linux systems do not require any additional install or runtime dependencies." but that doesn't mean all.

    Please run that app-icons-android gulp task, it could give more information related to the problem. 

  • Hi  ,  ,

    Thank you for your suggestions - indeed the problem is in importing 'sharp' library.
    Though it is not clear what exactly is wrong with it - it looks like the needed relationships are there and the library itself is in SDK files.

    Would you please suggest how we could fix it?

  • Hi  

    I would try to run some code samples from sharp repo or internet. Does it work?

    If no then go though docs on sharp library 

    sharp.pixelplumbing.com/install

    https://sharp.pixelplumbing.com/install#cross-platform

    This library might need some other dependancies to be preinstalled on your machine. This should be described in docs

    You can also try to upgrade its (sharp) version on your side using package.json if bundled version doesn't work on your side.

    Hope it helps