Skip to Content
0

Hybrid Application Toolkit installation - The "android" command is no longer available

Mar 01, 2017 at 02:59 PM

929

avatar image

I've followed the guides and blogs from SAP regarding installation of the HAT and installing all the pre-requisites.

However, it looks like the Android SDK has removed the 'android' command that the HAT installation checks for (in favour of using the sdkmanager and Android Studio).

Unfortunately, as the "android" command doesn't work, the pre-requisite checks fail and therefore I cannot continue to install the HAT.

I've searched everywhere (both on and off the SAP website) and it seems that no one has discussed this issue before or found a resolution to this.

The full error message is from Step 3 of the Pre-requisite checks on the SAP Hybrid Application Toolkit installation page is:

The "android" command is no longer available . For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat

I'm hoping that someone will be able to help me resolve this!

Thanks in advance,

David.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Dominik Steinrücken Mar 06, 2017 at 08:35 AM
0

Hi David

I had the same problem. I used an old version of the android tools:
- rename or remove the folder "tools" in the android sdk folder
- copy an older version of the tools to the sdk folder (I used this one: https://dl.google.com/android/repository/tools_r25.2.3-windows.zip )

After that I could run the setup, but now I got stuck while generating the cordova project :-/

Edit:
I downgraded the Android SDK Build-tools to 23.0.3 and uninstalled the Android 7.1.1 and Android 7.0 SDK-Platform. After that the installation worked

Best regards
Dominik

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Dominik,

Many thanks for your answer - this was a totally frustrating issue for me!

Thanks for the detailed instructions - these worked perfectly for me and allowed the hybrid development prerequisite checks to complete and the installation to continue.

Kind regards,

David.

0