cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with deploying kapsel app on sap web ide

Former Member
0 Kudos

Hi Experts,

This is my first attempt to build an SAPUI5 Mobile Kapsel App Project, i have set up my environment as per this link SAP Web IDE Hybrid App Toolkit Add-on.

Then i followed this blog .

When i get to the part where i need to deploy the application i get the following error:

"HAT Utility error

Command: generate

The utility has exited abnormally. Check the Web IDE console for details."


and on terminal:


"Spawn a process to run "node deployapp.js generate testCameraVIM_v1 true"

The "generate" script exited unexpectedly!

****************

Unexpected exit: The node process of the "generate" script exited with code 1.

****************

Stop stream due to unexpected exit of utility"

Cordova version : 4.2.0

Kapsel version : 3.7.1

The app runs on my browser. chrome v 41, and it users the macbooks camera, however when trying to run on an android device or emulator i get similar errors

"HAT Utility error

Command: run

The utility has exited abnormally. Check the Web IDE console for details."


and on terminal :


"Spawn a process to run "node deployapp.js generate testCameraVIM_v1"

Spawn a process to run "node deployapp.js run testCameraVIM_v1 android"

The "run" script exited unexpectedly!

****************

Unexpected exit: The node process of the "run" script exited with code 1.

****************

Stop stream due to unexpected exit of utility"

May you kindly advise as to where i might have gone wrong?

Thank you

John


Accepted Solutions (1)

Accepted Solutions (1)

midhun_vp
Active Contributor
0 Kudos

Hi John,

Were you able to install HAT successfully without any errors? Could you give the screen shot of the response you got after running setup.sh.

Regards,Midhun

SAP Technology RIG

Former Member
0 Kudos

Hi Midhun,

Thanks for the reply, I installed HAT with no errors, however i only have the screen shot below:

Before getting to this screen, I had to set environment variables. And everything seemed good.

However, Android paths, as below, need to be set continuously....maybe this has something to do with the error???

For example every time i open a terminal window and type "android" i get error

          -bash: android: command not found

then i enter the following 2 commands

          export ANDROID_HOME=/Users/i.stamatelos/SAP/android-sdk-macosx

          export PATH=$PATH:/Users/i.stamatelos/SAP/android-sdk-                       macosx/tools:/Users/i.stamatelos/sap/android-sdk-macosx/platform-tools

and after these commands i type "android" and the sdk manager starts.

Regards

John

midhun_vp
Active Contributor
0 Kudos

Hi John,

I believe that the path you are setting for android lasts only for that session. Hence when you restart your machine you need to set the path and variables again.

To permanently set the variables execute this command -

touch ~/.bash_profile; open ~/.bash_profile

then add the variables.

To add variable to path command is - sudo nano /etc/paths

Given below is a screenshot from my system.

Regards,Midhun

SAP Technology RIG

Former Member
0 Kudos

Hi Midhun

Please confirm if this is correct and then which option do i select.

Regards

John

midhun_vp
Active Contributor
0 Kudos

Hi John,

You need to setup Apache ant also.

Hope you are following this guide: 

Regards,Midhun

SAP Technology RIG

Former Member
0 Kudos

Hi Midhun,

I have not used the guide you just sent, however i used an almost identical guide

SAP Web IDE Hybrid App Toolkit Add-on

Here is a screen shot from my system.

I have not been able to permanently set the Android_home environment.

However i just started a new session, set the android variables again and my app deployed.

Thank you for your help!

Regards

John

agentry_src
Active Contributor
0 Kudos

Thread is now locked to prevent necromancy (see the Rules of Engagement in the Getting Started link at the top right of this page).

Regards, Mike (Moderator)

SAP Technology RIG

Answers (0)