cancel
Showing results for 
Search instead for 
Did you mean: 

HAT installation issue in 1.7.2

kriti_bafna1990
Explorer
0 Kudos

Hello,

I'm installing the new version of SAP HAT i.e;1.7.2, but it keeps failing during the build of the companion app:

All prerequisite has been met.

Following blogs, I degraded android to 24.2 but still I am facing same error.

But if I run node create_companion_app.js on command prompt build is successful but through Web IDE the app throws same error.

Please suggest.

Thanks,

Kriti

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

You dont really have to run node create_companion_app.js on command prompt

You just have to run setup of type 'Windows Command prompt' . Make sure you have met all pre-requisite as mentioned in this guide

It worked well for me with Android 5.1.1 (API 22)

Looping for more inputs.

Regards,

JK

kriti_bafna1990
Explorer
0 Kudos

Thanks for the response!

I am following below url for setting up HAT :SAP Web IDE Hybrid App Toolkit Add-on

I have following configurations

  1. OS - Windows 7 64 Bit
  2. Java - JDK  1.6
  3. Node.js - v0.10.40
  4. Cordova - 5.1.1
  5. Git - 1.9.5.msysgit.1
  6. Android - Android 5.1.1 API 22
  7. SMP - SP09 PL01
  8. HAT - 1.7.2
  9. and apache-ant-1.9.6

By following the above URL I can say that I have met all the prerequisites. The setup guide by SIMMACO FERRIERO has  prerequisites for HAT 1.5.

I tried running node create_companion_app.js just a way around to get build file. Let me know if you have any workaround to resolve this issue.


Best Regards

Kriti

0 Kudos

Unfortunately that blog is not up to date with the latest version which has been released in very recent times. I'm going to update it next week.

Regarding your problem could you please send me the complete log of the error?

Maybe it's better if you send it to me by email.

Regards,

Simmaco

pfefferf
Active Contributor
0 Kudos

Do you have installed gradle? It is missing on your configuration list. Gradle is necessary since Android 5.0 for the build.

Best Regards,

Florian

kriti_bafna1990
Explorer
0 Kudos

Hi Simmaco,

I am unable to find your mail id pls share your mail id so that I can fwd the error log.

Regards,

Kriti

kriti_bafna1990
Explorer
0 Kudos

Can you please share the procedure/blog to use Gradle.

Do I need to set environment var for same?

I have just unzipped Gradle file. Let me know what additional I need to do.

Regards,

Kriti

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

You have to set its bin path in the Env variables.

Path: .../gradle.../bin

pfefferf
Active Contributor
0 Kudos

Yes, as Jitendra already said you have to set the environment variables.

For a windows machine for example add following:

  • GRADLE_HOME: with path to your gradle folder
  • Add %GRADLE_HOME%\bin to the PATH variable.

Best Regards,

Florian

Answers (2)

Answers (2)

kriti_bafna1990
Explorer
0 Kudos

It worked!

Thanks to all.

Regards,

Kriti

kriti_bafna1990
Explorer
0 Kudos

Hi,

Thanks all!

Setting path for Gradle worked like a charm. Build is success!

But,when I run Companion App I am getting following error

Also If I make any other Kapsel app & try running it from Emulator I get following error

Please let me know I am missing something from my end.

Thanks,

Kriti

pfefferf
Active Contributor
0 Kudos

Seems that you just started the Companion App on the emulator, because the URL is missing which needs to be used by the Companion App to get the sources.

Please start the emulator out of the Web IDE by starting the preview mode (context menu on "index.html" of your HAT project -> Run -> Preview On -> Android Emulator).

Best Regards,

Florian