Unanswered: unable to create .apk for sencha application
Unanswered: unable to create .apk for sencha application
Hi
I am developed sencha application.i want to create .apk file for testing in to device.i refer your docs for that
all the command work fine except sencha package build config.json.it give following error .
C:\Documents and Settings\admin>sencha package run config.json
Sencha Cmd v3.0.0.250
[ERR]
Created directory D:\build\src\com\sencha\BarChart
Added file D:\build\src\com\sencha\BarChart\STActivity.java
Created directory D:\build\res
Created directory D:\build\bin
Created directory D:\build\libs
Created directory D:\build\res\values
Added file D:\build\res\values\strings.xml
Created directory D:\build\res\layout
Added file D:\build\res\layout\main.xml
Added file D:\build\AndroidManifest.xml
Added file D:\build\build.xml
Added file D:\build\proguard-project.txt
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
""D:/AndroidSDKr15/AndroidSDKr15\tools\android" create project --target android-
8 --name BarChart --activity STActivity --path "D:/build\/" --package com.sencha
.BarChart"
Could not run ant with error: 1
Failed to package application
When I had this problem, I had to uninstall Sencha Cmd and reinstall it into a directory without any spaces in the name (C:\Sencha). You probably have it installed in "C:\Program Files\SenchaXXX" right now, and Sencha has obviously left out quotes in one of their batch calls.
i have followed your answer . i re-install Sencha Cmd into directory without any name spaces in the name C:\Sencha.and fire command sencha package build packager.json it generate .apk successfully. but one problem is it gives 0KB size.i am not sure that it generate successfully or not .here is my packager.json
{
"applicationName":"MyChart",
"applicationId":"triumphsys.mobility.MyChart",
"bundleSeedId":"KPXFEPZ6EF",
"versionString":"1.0",
"versionCode":"1",
"icon": {
"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",
"certificatePath":"D:/my-release-key.keystore",
"sdkPath":"D:/AndroidSDKr15/AndroidSDKr15",
"androidAPILevel":"8",
"permissions":[
"INTERNET",
"ACCESS_NETWORK_STATE",
"CAMERA",
"VIBRATE",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CALL_PHONE"],
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
so suggest me what i do wrong.