Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2243 in a recent build.
  1. #11
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
    Stim is on a distinguished road

      0  

    Default


    Thanks voloshyn, the packaging now appears to include an error message when I use 'stbuild package config.json' instead of 'sencha package config.json'


    However the error message I am now getting

    ""C:/Program Files (x86)/Android/android-sdk/tools/android" create project --tar
    get android-7 --name TonTracApp --activity STActivity --path "C:/Users/TIM/Deskt
    op/Native Packaging/build/" --package com.PhpStorm4"
    Error: Target id is not valid. Use 'android.bat list targets' to get the target ids.
    Copy operation failed src=C:/Windows/stbuild/st-res/android//nimblekit.jar dst=C
    :/Users/TIM/Desktop/Native Packaging/build//libs/nimblekit.jar
    Failed to copy packager library
    Failed to package application
    What I notice is that the directory "C:/Windows/stbuild/st-res/android//nimblekit.jar" does exist, however I'm wondering if the two forward slashes is causing the copy operation to fail, and if this is merely a typo in stbuild. If this is not the case and it's an error on my side then please let me know how I can fix the issue.

    My Config file :

    Code:
    {  "applicationName":"TonTrac App",
     "applicationId":"com.PhpStorm4",
     "iconName":"icon.png",
     "versionString":"1.0",
     "outputPath":"C:/Users/TIM/Desktop/Native Packaging/build",
     "inputPath":"C:/Users/TIM/Desktop/Native Packaging/PhpStorm4",
     "configuration":"Debug",
     "platform":"Android",
     "deviceType":"Universal",
     "certificatePath":"akey.keystore",
     "certificateAlias":"akey",
     "sdkPath":"C:/Program Files (x86)/Android/android-sdk",
     "orientations": [
       "portrait",
       "landscapeLeft",
       "landscapeRight",
       "portraitUpsideDown"
     ]
    }
    Upon further inspection if I put the outputPath as "C:/Users/TIM/Desktop/Native Packaging/build/ the error will say "dst=C:/Users/TIM/Desktop/Native Packaging/build///libs/nimblekit.jar", with three forward slashes in the dst path.

    I am assuming this is what causes me errors, though. If I am doing something else incorrectly please let me know
    Last edited by Stim; 2 Mar 2012 at 12:07 AM. Reason: cleaning up post

  2. #12
    Sencha - Sencha Touch Dev Team voloshyn's Avatar
    Join Date
    Jan 2012
    Posts
    118
    Vote Rating
    1
    voloshyn is on a distinguished road

      1  

    Default


    you need to have Android API Level 7 (Android 2.1) installed in your Android SDK, you can install it via Android SDK manager (android_sdk/tools/android.bat)

  3. #13
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
    Stim is on a distinguished road

      0  

    Default


    Worked now, thanks voloshyn, really appreciate the swift response.

  4. #14
    Sencha User
    Join Date
    Dec 2010
    Posts
    5
    Vote Rating
    0
    thinkerx is on a distinguished road

      0  

    Exclamation


    I tried on Windows Xp and Windows 7 x64 using:
    Code:
    stbuild package configTemplate.json
    and I'm getting the same problem.
    I have already installed the Android SDK Platform API Level 7.

    Can anyone post some code which is working and can be converted into native code? Since mine is not working.
    Is there a way to get any log messages?

  5. #15
    Sencha - Sencha Touch Dev Team voloshyn's Avatar
    Join Date
    Jan 2012
    Posts
    118
    Vote Rating
    1
    voloshyn is on a distinguished road

      0  

    Default


    thinkerx, make sure you install the new msi installer I attached on the previous page, then run stbuild package generate config.plist and replace value placeholders in newly generated file, try using "Android" as a platform instead of AndroidEmulator. Make sure you replaced all '\' to '/', lastly you may want to insert contents of your config into JSON validation tool and see if there are some problems and then try again. Also try to package just a simple index.html with "hello world" and see if that works. If you did everything above and it is still not working send me your config I will reproduce all the folder structure you have and will make exactly the same environment and we will see.

  6. #16
    Sencha User
    Join Date
    Oct 2011
    Posts
    8
    Vote Rating
    0
    Shawn.Zhang is on a distinguished road

      0  

    Default


    Me too.
    Quote Originally Posted by thinkerx View Post
    When I change the "\" symbol for "/" I get:
    -On Windows 7 x64 the same result (no error/info/warning messages)
    -On Windows XP the "Required field is missing from config file Failed to package application" message is no longer displayed but I'm getting the same result as if I were running on Windows 7 x64. I mean I'm getting only a few blank lines on the terminal and the .apk file is not being created.

  7. #17
    Sencha - Sencha Touch Dev Team voloshyn's Avatar
    Join Date
    Jan 2012
    Posts
    118
    Vote Rating
    1
    voloshyn is on a distinguished road

      0  

  8. #18
    Sencha Premium Member
    Join Date
    Jan 2008
    Location
    Atlanta, GA
    Posts
    93
    Vote Rating
    0
    kai5263499 is on a distinguished road

      0  

    Default


    When I go to use either the stbuild or latest sencha utility I get the following error:
    Code:
    Error: Target id is not valid. Use 'android.bat list targets' to get the target
    ids.
    Copy operation failed src=C:/Windows/stbuild/st-res/android/\nimblekit.jar dst=.
    \\libs\nimblekit.jar
    Can not open destination file for writing
    Failed to copy packager library
    Failed to package application
    Any ideas?

  9. #19
    Sencha User
    Join Date
    Jan 2012
    Posts
    62
    Vote Rating
    5
    s.t.a.s is on a distinguished road

      0  

    Default Can not open source file

    Can not open source file


    Guys, I have another error message with Android packaging. My config (configTemplate.json) is:
    Code:
    {
    "applicationName": "TestSencha",
    "applicationId": "com.sencha.TestSencha",
    "versionString": "1.0",
    "iconName": "icon.png",
    "inputPath": "AppSource",
    "outputPath": "build",
    "configuration": "Debug",
    "platform": "AndroidEmulator",
    "deviceType": "Universal",
    "certificatePath": "test-release-key.keystore",
    "certificateAlias": "test_sencha",
    "sdkPath": "..\\..\\Android\\android-sdk",
    "androidAPILevel": "15",
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]
    }
    Previously I installed Android SDK 4.0.3 (15 level) and it's located on my Windows PC (not Windows 7, but Windows XP) here:
    C:\Program Files\Android\android-sdk\

    But I run sencha package from this place:
    C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\

    That's why I set "sdkPath" as "..\\..\\Android\\android-sdk" (double slash is a valid way for setting slash in JSON). And as a result I'm getting following error on command "sencha package run configTemplate.json"
    (look at the end of log):

    Code:
    C:\Program Files\SenchaSDKTools-2.0.0-Beta\command>sencha package run configTemplate.json
    Updated file C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\src\com\se
    ncha\TestSencha\STActivity.java
    Updated file C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\res\values
    \strings.xml
    Updated file C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\res\layout
    \main.xml
    Updated file C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\AndroidMan
    ifest.xml
    Updated file C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\build.xml
    Updated file C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\proguard.c
    fg
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
    b\tools.jar
    Buildfile: C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\build\build.xml
    
    
    -set-mode-check:
    
    
    -set-debug-files:
    
    
    -set-debug-mode:
    
    
    -debug-obfuscation-check:
    
    
    -setup:
         [echo] Gathering info for TestSencha...
        [setup] Android SDK Tools Revision 16
        [setup] Project Target: Android 4.0.3
        [setup] API level: 15
        [setup]
        [setup] ------------------
        [setup] Resolving library dependencies:
        [setup] No library dependencies.
        [setup]
        [setup] ------------------
        [setup]
        [setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (7) is lower
     than the project target API level (15)
    
    
    -build-setup:
         [echo] Creating output directories if needed...
        [mkdir] Created dir: C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\buil
    d\bin\res
        [mkdir] Created dir: C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\buil
    d\gen
        [mkdir] Created dir: C:\Program Files\SenchaSDKTools-2.0.0-Beta\command\buil
    d\bin\classes
    
    
    -pre-build:
    
    
    -code-gen:
         [echo] ----------
         [echo] Handling aidl files...
         [aidl] No AIDL files to compile.
         [echo] ----------
         [echo] Handling RenderScript files...
    [renderscript] No RenderScript files to compile.
         [echo] ----------
         [echo] Handling Resources...
         [aapt] Generating resource IDs...
    
    
    -pre-compile:
    
    
    -compile:
    ""..\..\Android\android-sdk\tools\android" create project --target android-15 --
    name TestSencha --activity STActivity --path build\ --package com.sencha.TestSen
    cha"
    Can not open source file
    Can not open source file
    Can not open source file
    Can not open source file
    Could not install application
    Failed to run packaged application
    Could you help me? Where is a problem?

  10. #20
    Sencha User
    Join Date
    Feb 2011
    Posts
    12
    Vote Rating
    0
    grey_monk has a little shameless behaviour in the past

      0  

    Default


    Quote Originally Posted by s.t.a.s View Post
    Could you help me? Where is a problem?
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar

    You should place tools.jar in
    C:\Program Files\Java\jre7\lib\


Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi