Results 1 to 3 of 3

Thread: Cannot run release build of apk

  1. #1
    Sencha User
    Join Date
    Sep 2013
    Posts
    14
    Answers
    1

    Default Cannot run release build of apk

    Sencha Cmd version(s):
    • Sencha Cmd 4.0.1.45

    Operating System

    • Mac OS X 10.7.5

    Framework used:

    • Sencha Touch 2.3.1
    • Cordova 3.2.0
    • Architect 3.0.3

    Description:
    • Building a release version of my app does not run on the device.


    Up until now I have been able to build and install my app on my phone just using:

    Code:
    sencha app build native
    This produces an AI-debug.apk which works well locally but cannot be uploaded to the Play store as it is debug. Uploading this file gave an error that it was signed with a debug certificate.

    So, I have tried another build using:

    Code:
    sencha app package build ./packager.json
    This runs through and produces an AI.apk file which happily installs. However, this doesn't run. It starts and just shows the icon and title across the top of the screen.

    The packager.json file is set to release and I have updated the keys/certs to the appropriate locations. I have also updated the AndroidManifest.xml to set android:debuggable:false.

    When I compare the debug package and the release package, the release packages is missing the www level so all files are just in assets. Is this correct or is this the problem? If it is the problem, how can I fix it?

    This is my first attempt at packaging for the Play store and there seems to be differing docs about how to do this. To add to my confusion, this project has been through a few versions of cordova and touch and has been worked on by other developers so there may well be older config files lying around.

    Can provide more details once I know what I am supposed to be looking at.

    Thanks,
    AIDev

  2. #2
    Sencha User
    Join Date
    Sep 2013
    Posts
    14
    Answers
    1

    Default

    After some further investigation, it appears that the release build is not triggering a cordova build. There are no cordova js files in the package and the plugins are also missing. I thought after cordova was installed it effectively took over the build process. So, which of the above build commands is correct for packaging a release build for the Play store? What is needed to get that command to produce a correct package? Thanks, AIDev

  3. #3
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    This is a known issue. Jira id SDKTOOLS-732. You should use cordova CLI directly to create release builds.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services ser[email protected]

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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •