Hybrid View
-
15 Nov 2012 10:03 AM #1
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 ?
-
Best Answer Posted by silami
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
-
16 Nov 2012 5:15 AM #2
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
-
17 Nov 2012 4:35 AM #3
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"
]
}
-
17 Nov 2012 5:18 AM #4
many have same problem , but still i could not find any answer , please what the wrong !!
-
17 Nov 2012 5:29 AM #5
@than
when i excuse sencha package run pak.json
i get the following error
do u have any idea how to solve itCode: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"
-
17 Nov 2012 5:48 AM #6
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
-
17 Nov 2012 3:45 PM #7
Hi Thanumoorthy,
have you tried this command :
Code:sencha app build native XXXXXXX.json
-
18 Nov 2012 2:57 AM #8
Thanks Silami , everything is working fine now , thanks a lot again ...


Reply With Quote