1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    18
    Vote Rating
    0
    deepakse is on a distinguished road

      0  

    Default 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


    [ERR] stbuild exited with non-zero code : 7
    here is my .json file.https://www.dropbox.com/s/rtzpp444e4xjbxj/config.json
    please give me help.
    Thanks
    Deepak

  2. #2
    Sencha User
    Join Date
    Jan 2013
    Posts
    6
    Vote Rating
    1
    pawanyanky is on a distinguished road

      0  

    Default


    could someone please reply to this thread . even I have the same problem.

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2009
    Posts
    65
    Answers
    2
    Vote Rating
    1
    kevhender is on a distinguished road

      1  

    Default


    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.

    Hope this helps.

  4. #4
    Sencha User
    Join Date
    Jan 2013
    Posts
    18
    Vote Rating
    0
    deepakse is on a distinguished road

      0  

    Default


    hi
    Thanks . now .apk is generating

  5. #5
    Sencha User
    Join Date
    Jan 2013
    Posts
    18
    Vote Rating
    0
    deepakse is on a distinguished road

      0  

    Default


    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.

  6. #6
    Sencha User
    Join Date
    Jan 2013
    Posts
    18
    Vote Rating
    0
    deepakse is on a distinguished road

      0  

    Default


    i have remove jdk 1.7.0 and install 1.6.0 then fire commad .apk is generated with showing size

  7. #7
    Sencha User
    Join Date
    Sep 2011
    Location
    Boston
    Posts
    138
    Answers
    5
    Vote Rating
    6
    drb is on a distinguished road

      0  

    Default


    Was this problem ever fixed?