1. #1
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    156
    Vote Rating
    0
    Answers
    1
    stefx is on a distinguished road

      0  

    Exclamation Unanswered: Error build to Android Emulator

    Unanswered: Error build to Android Emulator


    This is my configuration:
    Code:
    {
    "applicationName":"ppp",
    "applicationId":"com.ppp.aaa",
    "versionString":"1.0",
    "iconName":"resources/icons/Icon~ipad.png",
    "inputPath":"build/native",
    "outputPath":"build/",
    "configuration":"Debug",
    "platform":"AndroidEmulator",
    "deviceType":"Universal",
    "certificatePath":"/path/to/certificate.file",
    "certificateAlias":"",
        
    "sdkPath":"/Applications/android-sdk-macosx",
        
    "androidAPILevel":"10",
    "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    But if I run this command:
    Code:
    sencha app build native
    I got this error:
    Code:
    [ERROR] Error: Target id is not valid. Use 'android list targets' to get the target ids.
    This because the command try to build for wrong api level:

    Code:
    "/Applications/android-sdk-macosx/tools/android" create project --target android-7 --name ppp --activity STActivity --path "/Applications/MAMP/htdocs/ppp/build/native/" --package com.ppp.aaa
    The command build always for api level 7 without consider "androidAPILevel" parameter.

    I've try to install android sdk for api-level 7 and I get this error:
    Code:
    BUILD SUCCESSFUL
    Total time: 6 seconds
    "/Applications/android-sdk-macosx/tools/android" create project --target android-7 --name GEOmobi --activity STActivity --path "/Applications/MAMP/htdocs/aaa/build/native/" --package com.aaa.ppp
    Could not install application
    Failed to run packaged application
    
    
    [ERROR] error: device not found
    Where is the problem?

    Stefano

  2. #2
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    156
    Vote Rating
    0
    Answers
    1
    stefx is on a distinguished road

      0  

    Default


    Message to forum admin: can you move this thread to bugs section?
    Thanks

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    12
    Vote Rating
    0
    Answers
    1
    dw12345 is an unknown quantity at this point

      0  

    Default


    I tried to deploy the device example to test the native device controls. I was using sdktools-beta and sdk_2.0.0. I could package my app OK and all worked except for google maps and geolocation. Very frustrating. Anyway I finally saw that sdk-2.0.1 and Beta3 were released so I figured I would upgrade. That is when everything broke with the
    ERROR] Error: Target id is not valid

    problem. Anyway after much debugging and many this.info() statements added to the sdk code. I finally got it to work. Here is how I got by the error when building Android Native on windows. Hopefully someone can figure that one out soon.
    • Install SenchaSDKTools-Beta
    • Rename C:\WINDOWS\stbuild.exe to stbuild-beta.exe
    • Rename folder C:\WINDOWS\stbuild to stbuild-beta
    • Uninstall SenchaSDKTools-Beta
    • Manually remove SenchaSDKTools-Beta\bin from PATH
    • Install SenchaSDKTools-Beta3
    • Rename C:\WINDOWS\stbuild.exe to stbuild-beta3.exe (or delete)
    • Rename folder C:\WINDOWS\stbuild to stbuild-beta3 (or delete)
    • Rename C:\WINDOWS\stbuild-beta.exe to stbuild.exe
    • Rename folder C:\WINDOWS\stbuild-beta to stbuild
    Now running sencha app build native will produce a apk file. Now I can at least get it to build when xtype: 'map' is present. However It still fails when I try to include the google maps url in app.json.

  4. #4
    Sencha User
    Join Date
    May 2008
    Posts
    262
    Vote Rating
    -4
    mnask79 is infamous around these parts

      0  

    Default


    "Install SenchaSDKTools-Beta"
    how can i find it ?

  5. #5
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
    Jorge_Perez is on a distinguished road

      0  

    Default


    I've got the same problem!!! need help please!! I dont know what else to do...

  6. #6
    Sencha User
    Join Date
    Sep 2012
    Posts
    76
    Vote Rating
    0
    rbahumi is on a distinguished road

      0  

    Default Same problem here

    Same problem here


    Did anyone find a solution for that?

Tags for this Thread