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 2008
    Posts
    262
    Vote Rating
    -4
    mnask79 is infamous around these parts

      0  

    Default


    thanks , but still 0 K apk file , and when i execute the command its hanging ... :@

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

      0  

    Default


    i still have same problem

    JAVA_HOME : C:\Program Files\Java\jdk1.7.0_09\bin

    CLASSPATH : .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

    Path : C:\Ruby193\bin;C:\Program Files\SenchaSDKTools-2.0.0-beta3;C:\Windows;%SystemRoot%\system32;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\cloudControl;%SystemRoot%;%SystemRoot%\System32\wbem;C:\wamp\bin\php\php5.4.3;C:\Program Files\Java\jdk1.7.0_09\bin


    and still getting this error


    Code:
    
    C:\wamp\www\test4>sencha package run packager.json
    [INFO] Created directory C:\wamp\www\test4\build\native\src\com\bzj\test4
    Added file C:\wamp\www\test4\build\native\src\com\bzj\test4\STActivity.java
    Created directory C:\wamp\www\test4\build\native\res
    Created directory C:\wamp\www\test4\build\native\bin
    Created directory C:\wamp\www\test4\build\native\libs
    Created directory C:\wamp\www\test4\build\native\res\values
    Added file C:\wamp\www\test4\build\native\res\values\strings.xml
    Created directory C:\wamp\www\test4\build\native\res\layout
    Added file C:\wamp\www\test4\build\native\res\layout\main.xml
    Created directory C:\wamp\www\test4\build\native\res\drawable-hdpi
    Created directory C:\wamp\www\test4\build\native\res\drawable-mdpi
    Created directory C:\wamp\www\test4\build\native\res\drawable-ldpi
    Added file C:\wamp\www\test4\build\native\AndroidManifest.xml
    Added file C:\wamp\www\test4\build\native\build.xml
    Added file C:\wamp\www\test4\build\native\proguard-project.txt
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
    b\tools.jar
    Buildfile: C:\wamp\www\test4\build\native\build.xml
    
    -set-mode-check:
    
    -set-debug-files:
    
    -set-debug-mode:
    
    -debug-obfuscation-check:
    
    -setup:
         [echo] Creating output directories if needed...
        [mkdir] Created dir: C:\wamp\www\test4\build\native\bin\res
         [echo] Gathering info for test4...
        [setup] Android SDK Tools Revision 18
        [setup] Project Target: Android 4.0.3
        [setup] API level: 15
        [setup]
        [setup] ------------------
        [setup] Resolving library dependencies:
        [setup] No library dependencies.
        [setup]
        [setup] ------------------
        [setup] API<=15: Adding annotations.jar to the classpath.
        [setup]
        [setup] ------------------
    
    -build-setup:
        [mkdir] Created dir: C:\wamp\www\test4\build\native\gen
        [mkdir] Created dir: C:\wamp\www\test4\build\native\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...
         [echo] ----------
         [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.
    
    -pre-compile:
    
    -compile:
    ""C://android-sdk-windows\tools\android" create project --target android-15 --na
    me test4 --activity STActivity --path "C:\wamp\www\test4\build\native\/" --packa
    ge com.bzj.test4"
    Can not open source file
    ""C://android-sdk-windows\platform-tools\adb" install -r "C:\wamp\www\test4\buil
    d\native\test4.apk""
    Could not install application
    Failed to run packaged application
    [ERROR]
    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"
    
    Total time: 2 seconds
    error: device not found
    Copy operation failed src=C:\wamp\www\test4\build\native\\bin\test4-debug.apk ds
    t=C:\wamp\www\test4\build\native\\test4.apk

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

      0  

    Default


    Hi mnask79,Please try Java_Home Path as C:\Program Files\Java\jdk1.7.0_09and Remove all Jre location from PATH variable

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

      0  

    Default


    thanks for helping ..


    PATH : Path : C:\Ruby193\bin;C:\Program Files\SenchaSDKTools-2.0.0-beta3;C:\Windows;%SystemRoot%\system32;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\cloudControl;%SystemRoot%;%SystemRoot%\System32\wbem;C:\wamp\bin\php\php5.4.3;C:\Program Files\Java\jdk1.7.0_09\bin


    there is no jre , or u mean to remove ";C:\Program Files\Java\jdk1.7.0_09\bin" ?

Thread Participants: 2

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