-
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 ?
-
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
-
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"
]
}
-
many have same problem , but still i could not find any answer , please what the wrong !!
-
@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
-
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
-
thanks , but still 0 K apk file , and when i execute the command its hanging ... :@
-
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
-
Hi mnask79,Please try Java_Home Path as C:\Program Files\Java\jdk1.7.0_09and Remove all Jre location from PATH variable
-
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" ?