on 05-05-2015 3:26 PM
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.