尝试在Android模拟器中打包sencha应用程序时出现以下错误。
无法创建Android项目
无法打包应用程序。
[ERR] stbuild以非零代码退出:6
我一步一步地遵循这篇文章:
http://www.sencha.com/blog/android-setup-for-sencha-touch/
我的packager.json:
{
"applicationName":"AndroidDemo",
"applicationId":"com.demo.AndroidDemo",
"bundleSeedId":"KPXFEPZ6EF",
"versionString":"1.0",
"versionCode":"1",
"icon": {
"36":"resources/icons/Icon_Android36.png",
"48":"resources/icons/Icon_Android48.png",
"57":"resources/icons/Icon.png",
"72":"resources/icons/Icon~ipad.png",
"114":"resources/icons/Icon@2x.png",
"144":"resources/icons/Icon~ipad@2x.png"
},
"inputPath":"./",
"outputPath":"../build",
"configuration":"Debug",
"platform":"AndroidEmulator",
"deviceType":"Universal",
"certificatePath":"C:/Users/Rohit/bin/android-sdk-windows/adt-bundle-windows-x86_64-20131030/android.keystore",
"certificateAlias":"android1",
"certificatePassword":"android1",
"provisionProfile":"",
"notificationConfiguration":"",
"sdkPath":"C:/Users/Rohit/bin/android-sdk-windows/adt-bundle-windows-x86_64-20131030",
"androidAPILevel":"19",
"permissions":[ "INTERNET", "ACCESS_NETWORK_STATE", "CAMERA", "VIBRATE", "ACCESS_FINE_LOCATION", "ACCESS_COARSE_LOCATION", "CALL_PHONE" ],
"orientations": [ "portrait", "landscapeLeft", "landscapeRight", "portraitUpsideDown" ]}
答案 0 :(得分:0)
如果您使用的是最新版本的Sencha Touch(2.4)和Sencha Cmd(5.0.x),那么您需要使用Cordova或PhoneGap - 不再支持STBuild。这可能是个问题。