1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    36
    Answers
    2
    Vote Rating
    -1
    ewertonalex is an unknown quantity at this point

      0  

    Default Unanswered: Sencha App Build Native doesn't create .apk

    Unanswered: Sencha App Build Native doesn't create .apk


    Hi,

    When I use the command "sencha app build native", CMD doesn't create the .apk.


    D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\MyApp>sencha app bu
    ild native
    Sencha Cmd v4.0.3.74
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] cmd-root-plugin.init-properties:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] app-build-impl:
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] find-cmd-in-path:
    [INF]
    [INF] find-cmd-in-environment:
    [INF]
    [INF] find-cmd-in-shell:
    [INF]
    [INF] init-cmd:
    [INF] [echo] Using Sencha Cmd from C:\Users\Ewerton\bin\Sencha\Cmd\4.0.3.74
    for D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\MyApp\build.xm
    l
    [INF]
    [INF] -before-init:
    [INF]
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF]
    [INF] -after-init:
    [INF]
    [INF] -before-init-defaults:
    [INF]
    [INF] -init-defaults:
    [INF]
    [INF] -after-init-defaults:
    [INF]
    [INF] -init-compiler:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-build:
    [INF]
    [INF] refresh:
    [INF]
    [INF] -before-refresh:
    [INF]
    [INF] -init:
    [INF]
    [INF] -init-compiler:
    [INF]
    [INF] -detect-app-build-properties:
    [INF] Loading app json manifest...
    [INF] Loading classpath entry D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\touch\src
    [INF] Loading classpath entry D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\app.js
    [INF] Loading classpath entry D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\app
    [INF] Loading classpath entry D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\build\temp\native\MyApp\sencha-compiler\app
    [INF] Loading classpath entry D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\build\temp\native\MyApp\sencha-compiler\app
    [INF] Concatenating output to file D:\Program Files\Apache Software Foundation\A
    pache2.2\htdocs\MyApp/build/temp/native/MyApp/sencha-compiler/cmd-packages.js
    [INF] Adding external reference : @full-page => @overrides
    [INF] Loading classpath entry D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\build\temp\native\MyApp\sencha-compiler\cmd-packages.js
    [INF] Adding external reference : Ext.util.Observable => D:\Program Files\Apache
    Software Foundation\Apache2.2\htdocs\MyApp/build/temp/native/MyApp/sencha-compi
    ler/cmd-packages.js
    [INF]
    [INF] -refresh-app:
    [INF] Appending concatenated output to file D:\Program Files\Apache Software Fou
    ndation\Apache2.2\htdocs\MyApp/bootstrap.js
    [INF] Appending concatenated output to file D:\Program Files\Apache Software Fou
    ndation\Apache2.2\htdocs\MyApp/bootstrap.js
    [INF] Appending concatenated output to file D:\Program Files\Apache Software Fou
    ndation\Apache2.2\htdocs\MyApp/bootstrap.js
    [INF] Appending concatenated output to file D:\Program Files\Apache Software Fou
    ndation\Apache2.2\htdocs\MyApp/bootstrap.js
    [INF] Appending concatenated output to file D:\Program Files\Apache Software Fou
    ndation\Apache2.2\htdocs\MyApp/bootstrap.js
    [INF] Appending content to D:\Program Files\Apache Software Foundation\Apache2.2
    \htdocs\MyApp/bootstrap.json
    [INF]
    [INF] -refresh:
    [INF]
    [INF] -after-refresh:
    [INF]
    [INF] resolve:
    [INF]
    [INF] js:
    [INF]
    [INF] -before-js:
    [INF]
    [INF] -init:
    [INF]
    [INF] -init-compiler:
    [INF]
    [INF] -detect-app-build-properties:
    [INF]
    [INF] -compile-js:
    [INF] Compressing data with YuiJavascriptCompressor
    [INF] Concatenating output to file D:\Program Files\Apache Software Foundation\A
    pache2.2\htdocs\MyApp/build/native/MyApp/app.js
    [INF]
    [INF] -js:
    [INF]
    [INF] -after-js:
    [INF]
    [INF] resources:
    [INF]
    [INF] -before-resources:
    [INF]
    [INF] -before-inherit-resources:
    [INF]
    [INF] -before-copy-resources:
    [INF]
    [INF] -init:
    [INF]
    [INF] -init-compiler:
    [INF]
    [INF] -resources:
    [INF] merging resources into D:\Program Files\Apache Software Foundation\Apache2
    .2\htdocs\MyApp\build\native\MyApp\resources
    [INF] merged 0 resources into D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\build\native\MyApp\resources
    [INF] merging resources into D:\Program Files\Apache Software Foundation\Apache2
    .2\htdocs\MyApp\build\native\MyApp
    [INF] merged 0 resources into D:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\MyApp\build\native\MyApp
    [INF]
    [INF] -after-copy-resources:
    [INF]
    [INF] -after-inherit-resources:
    [INF]
    [INF] -after-resources:
    [INF]
    [INF] sass:
    [INF]
    [INF] -before-sass:
    [INF]
    [INF] -compass-compile-theme-package:
    [INF]
    [INF] -compass-compile-theme-folders:
    [INF]
    [INF] -compass-compile-sass-dir:
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF]
    [INF] -compass-compile:
    [INF]
    [INF] -sass:
    [INF]
    [INF] -after-sass:
    [INF]
    [INF] slice:
    [INF]
    [INF] -before-slice:
    [INF]
    [INF] -slice-images:
    [INF]
    [INF] -slice:
    [INF]
    [INF] -after-slice:
    [INF]
    [INF] page:
    [INF]
    [INF] -before-page:
    [INF]
    [INF] -init:
    [INF]
    [INF] -init-compiler:
    [INF]
    [INF] -copy-app-resources:
    [INF] Copying page resources to D:\Program Files\Apache Software Foundation\Apac
    he2.2\htdocs\MyApp\build\native\MyApp
    [INF] copying D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\MyApp
    \resources\css\app.css to D:\Program Files\Apache Software Foundation\Apache2.2\
    htdocs\MyApp\build\native\MyApp\resources\css\app.css
    [INF]
    [INF] -generate-deltas:
    [INF]
    [INF] -detect-app-build-properties:
    [INF]
    [INF] -build-standalone-json-manifest:
    [INF] Writing content to D:\Program Files\Apache Software Foundation\Apache2.2\h
    tdocs\MyApp/build/native/MyApp/app.json
    [INF]
    [INF] -build-output-page:
    [INF]
    [INF] -build-output-microload-page:
    [INF] Writing content to D:\Program Files\Apache Software Foundation\Apache2.2\h
    tdocs\MyApp/build/native/MyApp/microloader.js
    [INF] Appending content to D:\Program Files\Apache Software Foundation\Apache2.2
    \htdocs\MyApp/build/native/MyApp/microloader.js
    [INF] Building output markup to D:\Program Files\Apache Software Foundation\Apac
    he2.2\htdocs\MyApp/build/native/MyApp/index.html
    [INF] [delete] Deleting: D:\Program Files\Apache Software Foundation\Apache2.
    2\htdocs\MyApp\build\native\MyApp\microloader.js
    [INF]
    [INF] -generate-cache-manifest:
    [INF]
    [INF] -page:
    [INF]
    [INF] -after-page:
    [INF]
    [INF] native-package:
    [INF]
    [INF] -before-native-package:
    [INF]
    [INF] -native-package-mobile:
    [INF] [echo] Building all specified mobile packager configs.
    [INF] [echo]
    [INF] [echo] Processing Mobile Packager config file
    [INF] [echo] config: D:\Program Files\Apache Software Foundation\Ap
    ache2.2\htdocs\MyApp/packager.json
    [INF] [echo] inputPath: D:\Program Files\Apache Software Foundation
    \Apache2.2\htdocs\MyApp/build/native/MyApp
    [INF] [echo] outputPath: D:\Program Files\Apache Software Foundatio
    n\Apache2.2\htdocs\MyApp/build/native-package-mobile/MyApp/packager.json
    [INF] [echo] Running mobile packager action build on file D:\Program Files\
    Apache Software Foundation\Apache2.2\htdocs\MyApp/packager.temp.json
    [INF]
    [INF] -native-package:
    [INF]
    [INF] -after-native-package:
    [INF]
    [INF] -build:
    [INF]
    [INF] -after-build:
    [INF]
    [INF] build:
    [INF]
    [INF] app-build:




    D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\MyApp>

  2. #2
    Sencha User
    Join Date
    Jul 2013
    Posts
    99
    Answers
    7
    Vote Rating
    10
    tt88 will become famous soon enough

      0  

    Default


    I've experienced this before for a number of reasons, from exceptions to having the folder open in another program.It looks like there weren't any exceptions with your build, so check that there are no programs that are referencing the build folder. In my case I was using Airdroid which held a reference to the folder & prevented the .apk from being written to it.You can also append the debug flag (sencha app build native -d) to get a more verbose output.- tt88

  3. #3
    Sencha User
    Join Date
    Jun 2013
    Posts
    36
    Answers
    2
    Vote Rating
    -1
    ewertonalex is an unknown quantity at this point

      0  

    Default


    There are no such programs referencing that folder. I've used the parameter -d, and I have the same result.

  4. #4
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,936
    Answers
    328
    Vote Rating
    130
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    Are you using Architect? What does your packager.json look like? Was your project upgraded from a previous version of Touch?
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  5. #5
    Sencha User
    Join Date
    Jun 2013
    Posts
    36
    Answers
    2
    Vote Rating
    -1
    ewertonalex is an unknown quantity at this point

      0  

    Default


    I'm not using Architect. Yes, my project was upgraded from a previous version of Touch (2.2). When I migrate to 2.3.1, and CMD 4.0.3.74, I have this problem.

    This is my packager.json:

    {
    "applicationName":"salesforce",
    "applicationId":"com.ev.salesforce",
    "bundleSeedId":"KPXFEPZ6EF",
    "versionString":"1.0",
    "versionCode":"1",
    "icon": {
    "60":"resources/icons/Icon.png",
    "120":"resources/icons/Icon@2x.png",
    "76":"resources/icons/Icon~ipad.png",
    "152":"resources/icons/Icon~ipad@2x.png",
    "36":"resources/icons/Icon-36.png",
    "48":"resources/icons/Icon-48.png",
    "96":"resources/icons/Icon-96.png",
    "57":"resources/icons/Icon-57.png",
    "114":"resources/icons/Icon-57@2x.png",
    "72":"resources/icons/Icon-72.png",
    "144":"resources/icons/Icon-72@2x.png",
    "29":"resources/icons/Icon-Small.png",
    "58":"resources/icons/Icon-Small@2x.png",
    "40":"resources/icons/Icon-Small-40.png",
    "80":"resources/icons/Icon-Small-40@2x.png",
    "50":"resources/icons/Icon-Small-50.png",
    "100":"resources/icons/Icon-Small-50@2x.png"
    },
    "inputPath":"./",
    "outputPath":"../build/",
    "configuration":"Debug",
    "notificationConfiguration":"debug",
    "platform":"Android",
    "deviceType":"Universal",
    "certificatePath":"",
    "certificateAlias":"",
    "certificatePassword":"",
    "provisionProfile":"",
    "URLScheme":"",
    "sdkPath":"d:/program files/android/android-sdk",
    "androidAPILevel":"10",
    "permissions":[
    "INTERNET",
    "ACCESS_NETWORK_STATE",
    "CAMERA",
    "VIBRATE",
    "ACCESS_FINE_LOCATION",
    "ACCESS_COARSE_LOCATION",
    "CALL_PHONE"
    ],
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]
    }

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,936
    Answers
    328
    Vote Rating
    130
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    How did you upgrade your project? With 'sencha app upgrade'? I would suggest installing the android-sdk to a path that does not contain a space in it. I know Cmd has a history of issues with paths with spaces. In the future please format your posts with code tags. You may want to remove the "URLScheme" line. I do not recognize that property. Verify you have the SDK platform installed for API level 10.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  7. #7
    Sencha User
    Join Date
    Jun 2013
    Posts
    36
    Answers
    2
    Vote Rating
    -1
    ewertonalex is an unknown quantity at this point

      0  

    Default


    How did you upgrade your project? With 'sencha app upgrade'?
    Yes.

    I would suggest installing the android-sdk to a path that does not contain a space in it. I know Cmd has a history of issues with paths with spaces.
    I removed the spaces and the issue continues.

    You may want to remove the "URLScheme" line. I do not recognize that property.
    Removed, same problem.

    Verify you have the SDK platform installed for API level 10.
    Yes, API level 10 instaled and the problem persist.

    I went back to the previous version, CMD 3 and framework 2.2, before the upgrade the build native was working, now it doesn't. The file is being generated with size zero. Any clue?

  8. #8
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,936
    Answers
    328
    Vote Rating
    130
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    Try creating a new base app with Touch 2.3 and creating an apk from that. This will help determine if the issue is with your machines set up or the upgraded project.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 2