Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      1  

    Default Unanswered: Package Android Application on Mac problem

    Unanswered: Package Android Application on Mac problem


    Hello,

    I'm trying to package my app with your sencha native command.

    My packager.json is :
    "applicationName":"MyApp",
    "applicationId":"com.inapps.myapp",
    "versionString":"1.0",
    "iconName":"resources/icons/Icon~ipad.png",
    "inputPath":"build/native",
    "outputPath":"build/",
    "configuration":"Debug",
    "platform":"AndroidEmulator",
    "deviceType":"Universal",
    "certificatePath":"./debug.keystore",
    "certificateAlias":"androiddebugkey",
    "sdkPath":"/Users/inpeople-jc/android-sdk-macosx",
    "androidAPILevel":"7",
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]

    But when i launch the command "sencha package run packager.json", i've got the followings error :

    BUILD SUCCESSFUL
    Total time: 6 seconds
    "/Users/inpeople-jc/android-sdk-macosx/tools/android" create project --target android-7 --name Coze --activity STActivity --path "build//" --package com.inapps.coze
    Can not open source file
    Can not open source file
    Can not open source file
    Could not install application
    Failed to run packaged application
    [ERROR] Error: Project folder 'build' is not empty. Please consider using 'android update' instead.
    Copy operation failed src=build/native//resources/icons/Icon~ipad.png dst=build///res/drawable-ldpi/icon.png
    Copy operation failed src=build/native//resources/icons/Icon~ipad.png dst=build///res/drawable-mdpi/icon.png
    Copy operation failed src=build/native//resources/icons/Icon~ipad.png dst=build///res/drawable-hdpi/icon.png
    error: device not found

    I don't know why ?

    Best regards,

    Nos

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,633
    Answers
    3452
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The target api is specified as 7 and doesn't get picked up from the packager.json which was a bug but has been fixed.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

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

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

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

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    8
    Answers
    1
    Vote Rating
    0
    SeanCannon is an unknown quantity at this point

      0  

    Default


    The bug has been fixed? How to I obtain the update?

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    55
    Answers
    1
    Vote Rating
    0
    twisted_zero is on a distinguished road

      0  

    Default


    I have the same error.

  5. #5
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      0  

    Default


    I've updated my packager.json with API level to 15 and i always have the same error ?????

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Posts
    9
    Vote Rating
    0
    papadakn is on a distinguished road

      0  

    Default


    Having the same problem when building my app. Any solution out there?