-
9 Mar 2012 3:52 AM #1
android packaging error
android packaging error
when i try to do this
with this config.json fileCode:sencha package run config.json
it ends with this error, and the build folder is cleared (all files deleted)Code:{ "applicationName": "Cesilabs Hello World", "applicationId": "com.cesilabs.helloworld", "outputPath": "c:\\Users\\CASA\\Documents\\WebsIDIQ\\mobile_hello_world\\build", "iconName": "logo.png", "versionString": "1.0", "inputPath": "c:\\Users\\CASA\\Documents\\WebsIDIQ\\mobile_hello_world\\www", "webAppPath": "c:\\Users\\CASA\\Documents\\WebsIDIQ\\mobile_hello_world\\www", "configuration": "Debug", "platform": "AndroidEmulator", "deviceType":"Universal", "certificatePath": "c:\\Users\\CASA\\Documents\\WebsIDIQ\\mobile_hello_world\\android\\debug.keystore", "certificateAlias": "androiddebugkey", "sdkPath": "c:\\Program Files\\Android\\android-sdk", "androidAPILevel":"10", "orientations": [ "portrait", "landscapeLeft", "landscapeRight", "portraitUpsideDown" ] }
Code:-compile: ""c:\Program Files\Android\android-sdk\tools\android" create project --target an droid-10 --name CesilabsHelloWorld --activity STActivity --path c:\Users\CASA\Do cuments\WebsIDIQ\mobile_hello_world\build\ --package com.cesilabs.helloworld" Could not run ant with error: 1 Failed to package application
-
9 Mar 2012 5:07 AM #2
I meet the same problem,thanks for help。
I meet the same problem,thanks for help。
Hey guy,i aslo meet the same problem,this is my screenshot of the error,what's wrong? thanks。QQ截图20120309210254.png
-
15 Mar 2012 7:56 AM #3
I've got the same problem.
Code:BUILD FAILED C:\android-sdk\tools\ant\build.xml:580: The following error occurred while exec ting this line: C:\android-sdk\tools\ant\build.xml:600: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesM dernCompilerExist(CompilerAdapterFactory.java:166) at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCo piler(CompilerAdapterFactory.java:125) at org.apache.tools.ant.taskdefs.Javac.findSupportedFileExtensions(Java .java:961) at org.apache.tools.ant.taskdefs.Javac.scanDir(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:909) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at com.android.ant.IfElseTask.execute(IfElseTask.java:120) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.ja a:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx cutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Total time: 1 second Could not run ant with error: 1 Failed to package application
-
20 Mar 2012 2:50 AM #4
-
27 Mar 2012 1:46 AM #5
my results with errors:
Code:C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world>sencha package run config.js on Created directory C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\src\ com\cesilabs\helloworld Added file c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\src\com\ces ilabs\helloworld\STActivity.java Created directory C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\res Created directory C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\bin Created directory C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\libs Created directory C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\res\ values Added file c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\res\values\ strings.xml Created directory C:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\res\ layout Added file c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\res\layout\ main.xml Added file c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\AndroidMani fest.xml Added file c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\build.xml Added file c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\proguard.cf g Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li b\tools.jar Buildfile: c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\build\build.xml -set-mode-check: -set-debug-files: -set-debug-mode: -debug-obfuscation-check: -setup: [echo] Gathering info for CesilabsHelloWorld... [setup] Android SDK Tools Revision 16 [setup] Project Target: Android 2.3.3 [setup] API level: 10 [setup] [setup] ------------------ [setup] Resolving library dependencies: [setup] No library dependencies. [setup] [setup] ------------------ [setup] [setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (7) is lower than the project target API level (10) -build-setup: [echo] Creating output directories if needed... [mkdir] Created dir: c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\bui ld\bin\res [mkdir] Created dir: c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\bui ld\gen [mkdir] Created dir: c:\Users\CASA\Documents\WebsIDIQ\mobile_hello_world\bui ld\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... -pre-compile: -compile: ""c:\Program Files\Android\android-sdk\tools\android" create project --target an droid-10 --name CesilabsHelloWorld --activity STActivity --path c:\Users\CASA\Do cuments\WebsIDIQ\mobile_hello_world\build\ --package com.cesilabs.helloworld" Could not run ant with error: 1 Failed to package application
-
24 Apr 2012 3:38 AM #6
I have got the same problem.
I have got the same problem.
Sencha Command v2.0.0 Beta Copyright (c) 2012 Sencha Inc. usage: sencha COMMAND [ARGS] The available commands are: build build a JSB project create bootstrapdata generate boostrap data create jsb generate a minimal JSB project for an app create locale generate a template locale file from source create manifest generate classes manifest package package your Touch web app into a native bundle slice theme slice a custom theme's images for IE See 'sencha help COMMAND' for more information on a specific command.
Created directory D:\architect\test1\build\src\com\mycompany\myAppID Added file d:\architect\test1\build\src\com\mycompany\myAppID\STActivity.java
Created directory D:\architect\test1\build\res
Created directory D:\architect\test1\build\bin
Created directory D:\architect\test1\build\libs
Created directory D:\architect\test1\build\res\values Added file d:\architect\test1\build\res\values\strings.xml
Created directory D:\architect\test1\build\res\layout Added file d:\architect\test1\build\res\layout\main.xml Added file d:\architect\test1\build\AndroidManifest.xml Added file d:\architect\test1\build\build.xml Updated file d:\architect\test1\build\proguard-project.txt Unable to locate tools.jar.
Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar Buildfile: d:\architect\test1\build\build.xml -set-mode-check: -set-debug-files: -set-debug-mode: -debug-obfuscation-check: -setup: [echo] Creating output directories if needed... [mkdir]
Created dir: d:\architect\test1\build\bin\res [echo] Gathering info for MyApplication... [setup] Android SDK Tools Revision 19 [setup] Project Target: Android 2.1 [setup] API level: 7 [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: d:\architect\test1\build\gen [mkdir]
Created dir: d:\architect\test1\build\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: [javac]
Compiling 3 source files to d:\architect\test1\build\bin\classes ""D:\Android\android-sdk/tools/android"
create project --target android-7 --name MyApplication --activity STActivity --path "d:\architect\test1\build/" --package com.mycompany.myAppID"
Could not run ant with error: 1 Failed to package application
-
14 Jun 2012 10:07 PM #7
Any solution about error
Any solution about error
I have same ploblem
any solution?
-
14 Jun 2012 10:10 PM #8
Persist ploblem it is a Horror
Persist ploblem it is a Horror
BUILD SUCCESSFUL
Total time: 11 seconds
""C:/android-sdk-windows/tools/android" create project --target android-7 --nam
Fabrizio --activity STActivity --path "C:/AppServ/b12/" --package com.daniel.f
bi"
Could not sign application with error: -1073741515
Failed to package application
any solution
what is -1073741515?
-
15 Jun 2012 12:32 AM #9
Ok I see multiple problems here:
First off most of the error traces don't tell squad, please make it invoke ant with some kind of debug parameter or increase the info level. I'm pretty sure the sencha tools have a way to pass parameters directly to ant. Or look for log files as arnodius have done.
@Arnodius I would start by ensuring that all your tools is up to date, ensure that you have Java SDK 1.6 or perhaps 1.7, ensure that your android libraries are up to date and perhaps upgrade ant. To me it could look like you're on Java 5 (1.5) and Android requires you to have at least Java 6. From a little searching it seems that it can also be caused if your classes is compiled with a different Java sdk level than ant expects.
@danielyucra have you set up a certificate for signing?Developer/Alien Technologies at Mobile Ambitions Aps, Denmark.
-
15 Jun 2012 9:46 AM #10
more information about project
more information about project
@rohdef
a) My version sencha is:
sencha-touch-2.0.1.1
b) other information:
SET JAVA_HOME=C:\java\jdk1.6.0_25
c) Key signing
$ keytool -genkey -v -keystore fabi-release-key.keystore -alias fabi -keyalg RSA -keysize 2048 -validity 10000
It work fine.
d) About android
Android 2.1 (api 7)
e) Configuration File file.json
{
"applicationName":"GS",
"applicationId":"com.daniel.fabi",
"versionString":"1.0",
"iconName":"Icon.png",
"inputPath":"C:/AppServ/www/GS",
"outputPath":"C:/AppServ/b13",
"configuration":"Release",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"C:/AppServ/fabi-release-key.keystore",
"certificateAlias":"fabi",
"certificatePassword": "fabrizio",
"sdkPath":"C:/android-sdk-windows",
"androidAPILevel":"7",
"orientations":[
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
f) Geneate Application APK
I execute in cmd:
sencha package run file.json
g) My error:
And message error:
**********************************************
...
...
-release-prompt-for-password:
-release-nosign:
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign C:\AppServ\b14\bin\GS-release-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
[propertyfile] Creating new property file: C:\AppServ\b14\bin\build.prop
[propertyfile] Updating property file: C:\AppServ\b14\bin\build.prop
[propertyfile] Updating property file: C:\AppServ\b14\bin\build.prop
[propertyfile] Updating property file: C:\AppServ\b14\bin\build.prop
-release-sign:
-post-build:
release:
BUILD SUCCESSFUL
Total time: 12 seconds
""C:/android-sdk-windows/tools/android" create project --target android-7 --name
GS --activity STActivity --path "C:/AppServ/b14/" --package com.daniel.fabi"
Could not sign application with error: -1073741515
Failed to package application
***********************************
Where is my error ?
What is: "Could not sign application with error: -1073741515"
HELP MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE please !!!!!!!!!!


Reply With Quote