1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Mumbai
    Posts
    9
    Vote Rating
    0
    j.aakash is on a distinguished road

      0  

    Default Sencha ant cordova-native-create-android ERROR

    Sencha ant cordova-native-create-android ERROR


    REQUIRED INFORMATION


    Sencha Cmd version(s) tested:
    • Sencha CMD 4.0.0.161 RC
    Operating System:
    • WINDOWS 8 SL
    Framework used:
    • Sencha Touch 2.3.0 b2
    Description:
    • with the command sencha ant cordova-native-create-android it should create a directoy of cordova with all files in it but local.properties, build.xml, proguard.properties, ant.properties files in the root directory of the folder are missing.
    • ​Also the src folder naming convention is not correct.
    Diagnostic Output:

    The output from sencha diag show:
    Code:
    C:\wamp\www\test>sencha ant cordova-native-create-android
    Sencha Cmd v4.0.0.161
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] check-cmd-in-path:
    [INF]
    [INF] find-cmd-in-path:
    [INF]
    [INF] check-cmd-in-environment:
    [INF]
    [INF] find-cmd-in-environment:
    [INF]
    [INF] find-cmd-in-shell:
    [INF]
    [INF] init-cmd:
    [INF]      [echo] Using Sencha Cmd from C:\Users\Aakash\bin\Sencha\Cmd\4.0.0.161
     for C:\wamp\www\test\build.xml
    [INF]
    [INF] -before-init:
    [INF]
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF]
    [INF] -after-init:
    [INF]
    [INF] -before-init-defaults:
    [INF]
    [INF] -init-defaults:
    [INF]
    [INF] -after-init-defaults:
    [INF]
    [INF] -init-compiler:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-reset-cordova:
    [INF]
    [INF] -reset-cordova:
    [INF]
    [INF] -after-reset-cordova:
    [INF]
    [INF] reset-cordova:
    [INF]
    [INF] -before-init-cordova:
    [INF]
    [INF] -init-cordova:
    [INF]
    [INF] -after-init-cordova:
    [INF]
    [INF] init-cordova:
    [INF]
    [INF] -before-init-cordova-android:
    [INF]
    [INF] -init-cordova-android:
    [INF]
    [INF] -after-init-cordova-android:
    [INF]
    [INF] init-cordova-android:
    [INF]
    [INF] -before-cordova-native-create-android:
    [INF]
    [INF] -cordova-native-create-android:
    [INF]      [exec] Creating new android project...
    [INF]      [exec] Copying template files...
    [INF]      [exec] Copying js, jar & config.xml files...
    [INF]      [exec] Copying cordova command tools...
    [INF]      [exec] Updating AndroidManifest.xml and Main Activity...
    [INF]     [mkdir] Created dir: C:\wamp\www\test\native\src\android
    [INF]      [copy] Copying 1 file to C:\wamp\www\test\native\src\android
    [INF]
    [INF] -after-cordova-native-create-android:
    [INF]
    [INF] cordova-native-create-android:
    
    
    
    
    C:\wamp\www\test>

    Steps to reproduce the problem:
    • Create a test file with sencha generate app test ../test from touch-2.3.0 folder.
    • Generate the debug key as mentioned in documentation using keytool and then edit packager.json.
    • In command prompt , move to the roject directory and type sencha ant cordova-native-create-android.


    Customization are changing the build-cordova-android.xml as create.bat and android.bat.

    Code:
    <exec executable="${cmd-cordova-packager.cordova.lib.dir}/android/bin/create.bat">
    <env key="ANDROID_BIN" value="${packager.cordova.android.sdk.dir}/tools/android.bat"/>


    The result that was expected:
    Cordova directory should be created in native/app/test with all files required for cordova android project.

    The result that occurs instead:
    Cordova directory created but not all files are there but some of the files are missing.

    Possible fix:
    None.

    IMAGES :
    Capture.PNGCapture2.PNG

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,789
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    You might retry with Cmd 4 GA (4.0.0.203). Between the RC version and the final GA the cordova sections were significantly rewritten.

    Here is a guide that may help:
    http://docs.sencha.com/touch/2.3.0/#!/guide/cordova

    *Additional guides coming, too, but not published just yet.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

Thread Participants: 1