1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
    jeanluca is on a distinguished road

      0  

    Default Answered: build/test for android

    Answered: build/test for android


    Hi

    when I build for android I get the following error:

    [ERROR] Error: Target id is not valid. Use 'android list targets' to get the target ids.
    With the suggested command I get

    android list targets
    Available Android targets:
    ----------
    id: 1 or "android-15"
    Name: Android 4.0.3
    Type: Platform
    API level: 15
    Revision: 3
    Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800
    ABIs : armeabi-v7a
    Is it possible to set the id in packager.json ?
    Anyway, I was able to continue by modifying the command in the log message and executed the following:

    "/......./android-sdk-macosx/tools/android" create project --target android-15 --name MyApplication --activity STActivity --path "/Volumes/DATA/dev/build/native/" --package com.mycompany.myAppID
    That worked. But now I would like to test this on my android phone. I have no experience with this, but on google they mention an apk file which is unfortunately not present in my native directory:

    Code:
    drwxr-xr-x   7 ME   staff   238 May 14 11:30 ..
    drwxr-xr-x   3 root  staff   102 May 14 12:34 src
    drwxr-xr-x   7 root  staff   238 May 14 12:34 res
    -rw-r--r--   1 root  staff   563 May 14 12:34 project.properties
    -rw-r--r--   1 root  staff   781 May 14 12:34 proguard-project.txt
    -rw-r--r--   1 root  staff   432 May 14 12:34 local.properties
    drwxr-xr-x   2 root  staff    68 May 14 12:34 libs
    -rw-r--r--   1 root  staff  3504 May 14 12:34 build.xml
    drwxr-xr-x   2 root  staff    68 May 14 12:34 bin
    -rw-r--r--   1 root  staff   698 May 14 12:34 ant.properties
    -rw-r--r--   1 root  staff   647 May 14 12:34 AndroidManifest.xml
    drwxr-xr-x  12 root  staff   408 May 14 12:34 .
    Did something go wrong during build or how should I install this on my android phone ?

    Cheers
    Luca

  2. The next release will have the fix for the android target

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Answers
    3542
    Vote Rating
    846
    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 next release will have the fix for the android target
    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.

  4. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
    jeanluca is on a distinguished road

      0  

    Default


    thanks for the answer!!

  5. #4
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    quinonesn is on a distinguished road

      0  

    Default Fixed yet?

    Fixed yet?


    Has this issue been resolved in 2.0.1.1? If not is there a workaround?

  6. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    30
    Vote Rating
    0
    chitgoks is on a distinguished road

      0  

    Default


    nope. still same with 2.0.1.1

  7. #6
    Sencha User
    Join Date
    Feb 2012
    Location
    Toronto, Canada
    Posts
    25
    Vote Rating
    1
    burrellramone is on a distinguished road

      0  

    Default build/test for android

    build/test for android


    Quote Originally Posted by mitchellsimoens View Post
    The next release will have the fix for the android target

    I getting the error webpage not available at file:///android_asset.Any help?