Hybrid View

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

      0  

    Default Answered: generate apk file

    Answered: generate apk file


    hi guys ,

    i have updated java in my laptop (windows xp), then i tried to to generate apk file ,am not getting any error while building native app for Android. but it stucked in the command Prompt while
    [INFO] Embedded microloader into index.html[INFO] Packaging your application as a native app...

    And in the folder build/native apk file got generated but the size of the .apk file remains 0KB.

    what is the matter please ?

  2. Hi mnask79,

    In the system variables do you have something like this :
    JAVA_HOME => C:\Program Files\Java\jdk1.7.0_04

    Path => D:\SenchaSDKTools;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin

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

      0  

    Default


    it was working fine with me , then java has been updated , then problem appear , i was searching through this forum , many people have same problem , but i did not find any answer !!

    can you please help

  4. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
    Thanumoorthy is on a distinguished road

      0  

    Default 0KB apk file

    0KB apk file


    Hi guys,

    I tried to Generate apk file for android in Windows xp using following command

    sencha package run packager.jason

    But Above Command struck and didn't give any error or response. I found in 0kb apk File in Output Folder.

    I think .. I still miss something .....

    I am using sencha commandline tool 3.0 and sencha-touch-2.1 in Windows XP

    Could you please suggest any solution for this ?

    This is my packager.jason


    {
    "applicationName":"GS",
    "applicationId":"com.Honeywell.MyApp",
    "iconName":"resources/icons/icon.png",
    "versionString":"1.0",
    "versionCode":"1",
    "outputPath":"C:/wamp/www/sampleapp",
    "inputPath":"C:/wamp/www/GS",
    "webAppPath":"C:/wamp/www/GS",
    "androidAPILevel":"16",
    "platform":"Android",
    "configuration":"Debug",
    "deviceType":"Universal",
    "certificatePath":"C:/wamp/www/GS/debug.keystore",
    "certificateAlias":"androiddebugkey",
    "certificatePassword":"android",
    "sdkPath":"C:/Android",
    "permissions": [
    "INTERNET",
    "ACCESS_NETWORK_STATE",
    "CAMERA",
    "VIBRATE",
    "ACCESS_FINE_LOCATION",
    "ACCESS_COARSE_LOCATION",
    "CALL_PHONE"
    ],
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]
    }

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

      0  

    Default


    many have same problem , but still i could not find any answer , please what the wrong !!

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

      0  

    Default


    @than

    when i excuse sencha package run pak.json

    i get the following error


    Code:
    BUILD FAILED
    C:\android-sdk-windows\tools\ant\build.xml:651: The following error occurred whi
    le executing this line:
    C:\android-sdk-windows\tools\ant\build.xml:672: Unable to find a javac compiler;
    
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "C:\Program Files\Java\jre7"
    do u have any idea how to solve it

  7. #6
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
    Thanumoorthy is on a distinguished road

      0  

    Default


    Hi,Make sure your If you are using windows, Your PATH Environment variable is set to Jdk folder not as JRE folder.Please find below steps how to setup env variable in windowsMy Computer-> properties -> advance -> environment Variable -> Click new ButtonPATH C:\Program Files\Java\jdk1.5.0_13\binSame as JAVA_HOMEC:\Program Files\Java\jdk1.5.0_13\bin

  8. #7
    Sencha User
    Join Date
    May 2012
    Location
    Paris
    Posts
    11
    Answers
    3
    Vote Rating
    0
    silami is on a distinguished road

      0  

    Default


    Hi Thanumoorthy,

    have you tried this command :
    Code:
    sencha app build native XXXXXXX.json

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

      0  

    Default


    Thanks Silami , everything is working fine now , thanks a lot again ...

Thread Participants: 2