Hello Experts,
jitendra kansal
I am trying to install SAP HAT on my windows 8 but I am getting some error at tha following step
![hat.PNG]()
-------------------------------------------------------------------------------------------------------------------
Error :
The build script exited unexpectedly!
No config file specified.
Searching for config.json in the current directory.
Config file found at C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp/config.json.
platforms: android
5.3.1
cordova version: 5.3.1
Creating WebIdeCompanion project.
Creating a new cordova project.
C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp
Adding platforms...
android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.sap.ide.companion
Name: WebIdeCompanion
Activity: MainActivity
Android target: android-22
Copying template files...
Android project created with cordova-android@4.1.1
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android
Adding CompanionApp plugins...
Installing "com.sap.companion.cordova.plugins.toolbar" for android
For Android you need to modify the activity theme in the AndroidManifest.xml to be android:theme="@android:style/Theme.Holo.Light". The minSdkVersion must also be changed to at least 11.
Installing "com.sap.companion.cordova.plugins.logout" for android
Adding optional Kapsel plugins...
Installing "kapsel-plugin-corelibs" for android
Installing "kapsel-plugin-apppreferences" for android
Installing "kapsel-plugin-inappbrowser" for android
Installing "kapsel-plugin-logon" for android
Installing "kapsel-plugin-authproxy" for android
Fetching plugin "cordova-plugin-device" via npm
Installing "cordova-plugin-device" for android
Installing "kapsel-plugin-i18n" for android
Plugin "kapsel-plugin-authproxy" already installed on android.
Installing "kapsel-plugin-appupdate" for android
Fetching plugin "cordova-plugin-dialogs" via npm
Installing "cordova-plugin-dialogs" for android
Installing "kapsel-plugin-logger" for android
Installing "kapsel-plugin-encryptedstorage" for android
Installing "kapsel-plugin-settings" for android
Installing "kapsel-plugin-push" for android
For Android, you must install the Google Play services SDK found in the Android SDK Manager under Extras.
Installing "kapsel-plugin-barcodescanner" for android
Installing "kapsel-plugin-odata" for android
For Android, HAXM based emulators are not supported with the offline libraries.
Installing "kapsel-plugin-e2etrace" for android
Installing "kapsel-plugin-xhook" for android
Installing "nl.x-services.plugins.calendar" for android
Installing "kapsel-plugin-attachmentviewer" for android
Installing "kapsel-plugin-voicerecording" for android
Fetching plugin "cordova-plugin-media-capture" via npm
Installing "cordova-plugin-media-capture" for android
Fetching plugin "cordova-plugin-file" via npm
Installing "cordova-plugin-file" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Fetching plugin "cordova-plugin-device" via npm
Plugin "cordova-plugin-device" already installed on android.
Fetching plugin "cordova-plugin-file" via npm
Plugin "cordova-plugin-file" already installed on android.
Fetching plugin "cordova-plugin-network-information" via npm
Installing "cordova-plugin-network-information" for android
Fetching plugin "cordova-plugin-battery-status" via npm
Installing "cordova-plugin-battery-status" for android
Fetching plugin "cordova-plugin-device-motion" via npm
Installing "cordova-plugin-device-motion" for android
Fetching plugin "cordova-plugin-device-orientation" via npm
Installing "cordova-plugin-device-orientation" for android
Fetching plugin "cordova-plugin-geolocation" via npm
Installing "cordova-plugin-geolocation" for android
Fetching plugin "cordova-plugin-camera" via npm
Installing "cordova-plugin-camera" for android
Fetching plugin "cordova-plugin-media" via npm
Installing "cordova-plugin-media" for android
Fetching plugin "cordova-plugin-media-capture" via npm
Plugin "cordova-plugin-media-capture" already installed on android.
Fetching plugin "cordova-plugin-file-transfer" via npm
Installing "cordova-plugin-file-transfer" for android
Fetching plugin "cordova-plugin-dialogs" via npm
Plugin "cordova-plugin-dialogs" already installed on android.
Fetching plugin "cordova-plugin-vibration" via npm
Installing "cordova-plugin-vibration" for android
Fetching plugin "cordova-plugin-contacts" via npm
Installing "cordova-plugin-contacts" for android
Fetching plugin "cordova-plugin-globalization" via npm
Installing "cordova-plugin-globalization" for android
Fetching plugin "cordova-plugin-splashscreen" via npm
Installing "cordova-plugin-splashscreen" for android
Fetching plugin "cordova-plugin-console" via npm
Installing "cordova-plugin-console" for android
Adding custom plugins...
Copying assets
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
Preparing...
Running command: cmd "/s /c "C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\cordova\build.bat""
ANDROID_HOME=F:\Backup\PrajaktaEclipse\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31
Running: C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\build.gradle -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find com.google.android.gms:play-services-gcm:7.3.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.pom
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.jar
file:/F:/Backup/PrajaktaEclipse/adt-bundle-windows-x86_64-20140702/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.pom
file:/F:/Backup/PrajaktaEclipse/adt-bundle-windows-x86_64-20140702/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.jar
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 13.898 secs
C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\Prajakta1\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
The build process for android exited unexpectedly!
The system cannot find the path specified.
cmd error
The node process of the build script exited with code 1.
--------------------------------------------------------------------------------------------------------------------
I am using following versions of required software
Android SDK
SAP_HAT_local
phonegap-2.9.1
apache-ant-1.9.6-bin
node-v0.10.40-x86
Cordova 5.3
SMP3SDKInstaller_3_9_3_win
I also create AVD using API level 19 also Install all the updates of API level 22 in SDK.
I don't understand the issue please Let me know if anyone having solution.
Regards
Prajakta