Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    763
    Vote Rating
    1
    franklt69 is on a distinguished road

      0  

    Default What is wrong building native app to android using SA?

    What is wrong building native app to android using SA?


    Hi I have two package with his setting:

    1- PackageEmulator: Configuration = Debug
    Plataform = AndroidEmulator

    1- PackageEmulator: Configuration = Debug
    Plataform = AndroidEmulator
    androidAPILevel = 17


    2- PackageProduction: Configuration = Release
    Plataform = AndroidEmulator
    androidAPILevel = 10

    From SA, Windows Sencha Cmd Setup, I can use the "Simulate" button
    and both packages are working Ok in the emulator

    Then I build the app using PackageProduction, (click on Build Button) and I set the Native folder (xpmobile.apk + res folder)in dropbox, doubt Have I deploy "res" folder or with xpmobile.apk is enought?

    Note: the res folder have drawable-ldpi and drawable-mdpi folder and inside both files icon.png have size 0 Kbytes

    Then form my android phone using (gmail or Astro File Manager) I click xpmobile.apk appear the dialog Package installer, I choose it, and get this error

    Parse error: There is a problem parsing the package

    any hint is welcome,

    Regards
    Frank





    Code:
    C:\xampp\htdocs\xpmobile>cd /D "C:\xampp\htdocs\xpmobile"
    
    C:\xampp\htdocs\xpmobile>sencha app build -run native
    Sencha Cmd v3.1.1.274
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] -before-app-build:
    [INF]
    [INF] cmd-root-plugin.init-properties:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-app-build:
    [INF]
    [INF] app-build-impl:
    [INF]
    [INF] native:
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] find-cmd:
    [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] init:
    [INF]
    [INF] -before-build:
    [INF]
    [INF] sass:
    [INF]
    [INF] -before-sass:
    [INF]
    [INF] -sass:
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF]
    [INF] -after-sass:
    [INF]
    [INF] page:
    [INF]
    [INF] -before-page:
    [INF]
    [INF] -page:
    [INF] building application
    [INF] Deploying your application to C:\build\xpmobile\package
    [INF] Copied C:\xampp\htdocs\xpmobile\app.js to C:\build\xpmobile\package\app.js
    
    [INF] Copied C:\xampp\htdocs\xpmobile\resources\css\app.css to C:\build\xpmobile
    \package\resources\css\app.css
    [INF] Copied C:\xampp\htdocs\xpmobile\resources\images
    [INF] Copied C:\xampp\htdocs\xpmobile\resources\icons
    [INF] Copied C:\xampp\htdocs\xpmobile\resources\startup
    [INF] Resolving your application dependencies (file:///C:/xampp/htdocs/xpmobile/
    index.html)
    [INF] Compiling app.js and dependencies
    [INF] Loading classpath entry C:\touch\src
    [INF] Loading classpath entry C:\xampp\htdocs\xpmobile\app.js
    [INF] Loading classpath entry C:\xampp\htdocs\xpmobile\app
    [INF] Concatenating output to file C:\build\xpmobile\package\app.js
    [INF] Completed compilation.
    [INF] Processed remote file touch/sencha-touch.js
    [INF] Processed local file app.js
    [INF] Minified app.js
    [INF] Generated app.json
    [INF] Embedded microloader into index.html
    [INF] Generating native package
    [INF] Packaging your application as a native app to C:\build\xpmobile\native ...
    
    [INF] Successfully packaged native application
    [INF] Package may be run with 'sencha package run -p C:\xampp\htdocs\xpmobile\pa
    ckager.temp.json
    [INF] Successfully deployed your application to C:\build\xpmobile\package
    [INF]
    [INF] -after-page:
    [INF]
    [INF] run:
    [INF]
    [INF] -before-run:
    [INF]
    [INF] -run:

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,920
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Try using
    $ sencha app build native

    Also be sure you're following the guidelines set here: http://www.sencha.com/forum/showthre...ect-Sencha-Cmd

    there's a ton of things that can go wrong but most of them have to do with settings in the packager.json file

    The final apk can be found in C:\build\xpmobile\native
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 1