练习:Getting Started with Kapsel - Part 1 (SP9)
http://scn.sap.com/docs/DOC-65386
有关开发环境准备
官方正式文档见这里:
SMP 3.0 SDK参考 http://help.sap.com/smp309sdk?current=smp309sdk
点击 Kapsel Development
点击 Setting Up the Development Environment
=========================
安装JDK 1.8 64位
Android
Install a Java JDK such as jdk-8u45-windows-x64.exe.
=========================
安装Android Studio 2.1 (包括Android SDK 和Android模拟器)
=========================
系统环境中设置
SET Android_HOME=D:\Android\sdk
PATH=D:\Android\sdk\tools;%JAVA_HOME%\bin;……………….
=========================
安装node 4.4.1
=========================
安装cordova
npm uninstall cordova -g
npm install -g cordova@5.1.1
npm info cordova
cordova -v
5.1.1
=========================
创建项目
D:
CD \
MD Kapsel_Projects
CD Kapsel_Projects
REM 说明: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 构建项目
call cordova build
REM 把apk拷贝到当前目录,准备安装到Android模拟器上或者发布到Afaria企业应用商店上进行测试
call copy platforms\android\build\outputs\apk\android-debug.apk .
dir *.apk
=========================
REM 在模拟器上测试,实现要创建好名字叫做Androd53的模拟器
D:
set path=D:\Android\sdk\tools;D:\Android\sdk\platform-tools;%path%
call emulator @Android53
=========================
REM 安装Android应用
D:
set path=D:\Android\sdk\tools;D:\Android\sdk\platform-tools;%path%
call adb install android-debug.apk
========================= REM 卸载Android应用 call adb uninstall com.example.helloworld