SMP Hybrid Development Experiment 1:hello World

Source: Internet
Author: User
Tags prepare

Exercise: Getting Started with Kapsel-part 1 (SP9)
Http://scn.sap.com/docs/DOC-65386

Preparing for the development environment
Official documents are found here:
SMP 3.0 SDK Reference HTTP://HELP.SAP.COM/SMP309SDK?CURRENT=SMP309SDK
Click Kapsel Development
Click Setting up the development environment

=========================
Installing JDK 1.8 64-bit
Android
Install a Java JDK such as Jdk-8u45-windows-x64.exe.

=========================
Install Android Studio 2.1 (including Android SDK and Android emulator)

=========================
Settings in the system environment
SET ANDROID_HOME=D:\ANDROID\SDK

Path=d:\android\sdk\tools;%java_home%\bin, ............

=========================
Installing Node 4.4.1

=========================
Installing Cordova
NPM Uninstall Cordova-g
NPM install-g cordova@5.1.1
NPM Info Cordova
Cordova-v
5.1.1

=========================
Create a project

D:
CD \
MD kapsel_projects
CD kapsel_projects

REM Description: Explanation of Commands–cordova Create Cordova Create HelloWorld Com.example.helloworld "HelloWorld"

CD HelloWorld
Cordova-d Platform Add Android

Cordova-d Prepare Android

=========================
REM Use the Cordova Prepare command to copy that content into the Android, IOS, and Windows project folders:
Cordova Prepare Android

REM Build Project
Call Cordova Build

REM copies the apk to the current directory, ready to install to the Android emulator or post it to the Afaria Enterprise store for testing
Call copy platforms\android\build\outputs\apk\android-debug.apk.
Dir *.apk

=========================
REM test on the simulator to create a good name for the simulator called Androd53
D:
Set path=d:\android\sdk\tools;d:\android\sdk\platform-tools;%path%
Call Emulator @Android53

=========================
REM install Android App
D:
Set path=d:\android\sdk\tools;d:\android\sdk\platform-tools;%path%

Call adb install android-debug.apk

=========================
REM Uninstall Android App
Call adb uninstall Com.example.helloworld

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.