Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

Re: What is the difference betwee SAP KAPSEL and Hybrid App Toolkit add-on

$
0
0

Midhun,

 

Actually above i was getting above error, i think i have ran "run.bat" instead of  "setup.bat" first

 

Now ran Setup.bat able to move forward further. But i am getting some error.

 

Thanks for the reply,

 

Installed following things as per your blog and SAP installation doc

 

  • Java Development Kit (JDK 1.7)
  • Apache Ant (apache-ant-1.9.6)
  • Android SDK - Set system environment variable ANDROID_HOME to the location SDK. Add Android tools (C:\adt-bundle-windows-x86_64-20140702\sdk\tools) and platform-tools
  • Node.js (version V0.10.4)
  • Had the following error and downgraded to V0.10.40.
  • Cordova - Recommended ( 5.1.1 version installed)
  • Git ( installed)    

Added the following things in path

%ANT_HOME%\bin;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;C:\Users\vijay_000\AppData\Roaming\npm;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Git;C:\Program Files\nodejs;C:\Program Files (x86)\Java\jdk1.7.0_79\bin

 

 

But i am getting the following error in Build and Companion app section: Can u tell me what could be the issue.

 

 

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-1.7.2\WebIdeCompanion\companionapp/config.json. platforms: android 5.1.1 cordova version: 5.1.1 Creating WebIdeCompanion project. Creating a new cordova project. C:\SAP_HAT_local-1.7.2\WebIdeCompanion\companionapp\CompanionApp C:\SAP_HAT_local-1.7.2\WebIdeCompanion\companionapp Adding platforms... android npm http GET http://registry.npmjs.org/cordova-android npm http 304 http://registry.npmjs.org/cordova-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.0.2 Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project Fetching plugin "cordova-plugin-whitelist@1" via npm npm http GET http://registry.npmjs.org/cordova-plugin-whitelist npm http 304 http://registry.npmjs.org/cordova-plugin-whitelist 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.         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 npm http GET http://registry.npmjs.org/cordova-plugin-device npm http 200 http://registry.npmjs.org/cordova-plugin-device 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 npm http GET http://registry.npmjs.org/cordova-plugin-dialogs npm http 200 http://registry.npmjs.org/cordova-plugin-dialogs 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-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 npm http GET http://registry.npmjs.org/cordova-plugin-media-capture npm http 200 http://registry.npmjs.org/cordova-plugin-media-capture Installing "cordova-plugin-media-capture" for android Fetching plugin "cordova-plugin-file" via npm npm http GET http://registry.npmjs.org/cordova-plugin-file npm http 200 http://registry.npmjs.org/cordova-plugin-file Installing "cordova-plugin-file" for android Fetching plugin "cordova-plugin-device" via npm npm http GET http://registry.npmjs.org/cordova-plugin-device npm http 304 http://registry.npmjs.org/cordova-plugin-device Plugin "cordova-plugin-device" already installed on android. Fetching plugin "cordova-plugin-file" via npm npm http GET http://registry.npmjs.org/cordova-plugin-file npm http 304 http://registry.npmjs.org/cordova-plugin-file Plugin "cordova-plugin-file" already installed on android. Fetching plugin "cordova-plugin-network-information" via npm npm http GET http://registry.npmjs.org/cordova-plugin-network-information npm http 200 http://registry.npmjs.org/cordova-plugin-network-information Installing "cordova-plugin-network-information" for android Fetching plugin "cordova-plugin-battery-status" via npm npm http GET http://registry.npmjs.org/cordova-plugin-battery-status npm http 200 http://registry.npmjs.org/cordova-plugin-battery-status Installing "cordova-plugin-battery-status" for android Fetching plugin "cordova-plugin-device-motion" via npm npm http GET http://registry.npmjs.org/cordova-plugin-device-motion npm http 200 http://registry.npmjs.org/cordova-plugin-device-motion Installing "cordova-plugin-device-motion" for android Fetching plugin "cordova-plugin-device-orientation" via npm npm http GET http://registry.npmjs.org/cordova-plugin-device-orientation npm http 200 http://registry.npmjs.org/cordova-plugin-device-orientation Installing "cordova-plugin-device-orientation" for android Fetching plugin "cordova-plugin-geolocation" via npm npm http GET http://registry.npmjs.org/cordova-plugin-geolocation npm http 200 http://registry.npmjs.org/cordova-plugin-geolocation Installing "cordova-plugin-geolocation" for android Fetching plugin "cordova-plugin-camera" via npm npm http GET http://registry.npmjs.org/cordova-plugin-camera npm http 200 http://registry.npmjs.org/cordova-plugin-camera Installing "cordova-plugin-camera" for android Fetching plugin "cordova-plugin-media" via npm npm http GET http://registry.npmjs.org/cordova-plugin-media npm http 200 http://registry.npmjs.org/cordova-plugin-media Installing "cordova-plugin-media" for android Fetching plugin "cordova-plugin-media-capture" via npm npm http GET http://registry.npmjs.org/cordova-plugin-media-capture npm http 304 http://registry.npmjs.org/cordova-plugin-media-capture Plugin "cordova-plugin-media-capture" already installed on android. Fetching plugin "cordova-plugin-file-transfer" via npm npm http GET http://registry.npmjs.org/cordova-plugin-file-transfer npm http 200 http://registry.npmjs.org/cordova-plugin-file-transfer Installing "cordova-plugin-file-transfer" for android Fetching plugin "cordova-plugin-dialogs" via npm npm http GET http://registry.npmjs.org/cordova-plugin-dialogs npm http 304 http://registry.npmjs.org/cordova-plugin-dialogs Plugin "cordova-plugin-dialogs" already installed on android. Fetching plugin "cordova-plugin-vibration" via npm npm http GET http://registry.npmjs.org/cordova-plugin-vibration npm http 200 http://registry.npmjs.org/cordova-plugin-vibration Installing "cordova-plugin-vibration" for android Fetching plugin "cordova-plugin-contacts" via npm npm http GET http://registry.npmjs.org/cordova-plugin-contacts npm http 200 http://registry.npmjs.org/cordova-plugin-contacts Installing "cordova-plugin-contacts" for android Fetching plugin "cordova-plugin-globalization" via npm npm http GET http://registry.npmjs.org/cordova-plugin-globalization npm http 200 http://registry.npmjs.org/cordova-plugin-globalization Installing "cordova-plugin-globalization" for android Fetching plugin "cordova-plugin-splashscreen" via npm npm http GET http://registry.npmjs.org/cordova-plugin-splashscreen npm http 200 http://registry.npmjs.org/cordova-plugin-splashscreen Installing "cordova-plugin-splashscreen" for android Fetching plugin "cordova-plugin-console" via npm npm http GET http://registry.npmjs.org/cordova-plugin-console npm http 200 http://registry.npmjs.org/cordova-plugin-console Installing "cordova-plugin-console" for android Copying assets         1 file(s) copied.         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-1.7.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\cordova\build.bat"" ANDROID_HOME=C:\Users\vijay_000\AppData\Local\Android\android-sdk JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_79 Running: C:\SAP_HAT_local-1.7.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT_local-1.7.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.android.support:support-v4:22.0.0.      Searched in the following locations:          https://repo1.maven.org/maven2/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom          https://repo1.maven.org/maven2/com/android/support/support-v4/22.0.0/support-v4-22.0.0.jar          file:/C:/Users/vijay_000/AppData/Local/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom          file:/C:/Users/vijay_000/AppData/Local/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.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: 18.579 secs C:\SAP_HAT_local-1.7.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-1.7.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT_local-1.7.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\vijay_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134: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.

 

Error.png

 

Thanks


Viewing all articles
Browse latest Browse all 3353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>