1. #1
    Sencha User omari_yousef's Avatar
    Join Date
    Jul 2010
    Posts
    105
    Vote Rating
    0
    omari_yousef is on a distinguished road

      0  

    Default Unanswered: build sencha app error

    Unanswered: build sencha app error


    hello al l>>
    i trying to build native application for android device i install android sdk and sencha sdk and i generate the app but when i try to build it to native app.pka using this command

    sencha app build native
    i got this error
    Code:
    Sencha Cmd v3.0.0.250[INF]           init-properties:
    [INF]           init-sencha-command:
    [INF]           init:
    [INF]           -before-app-build:
    [INF]           app-build-impl:
    [INF]           native:
    [INF]           -before-init-local:
    [INF]           -init-local:
    [INF]           -after-init-local:
    [INF]           init-local:
    [INF]           find-cmd:
    [INF]           -before-init:
    [INF]           -init:
    [INF]           -after-init:
    [INF]           init:
    [INF]           -before-build:
    [INF]           sass:
    [INF]           page:
    [INF]           -before-page:
    [INF]           -page:
    [INF]           building application
    [INF]           Deploying your application to C:\Inetpub\wwwroot\y\build\y\packa
    ge
    [INF]           Copied app.js
    [INF]           Copied resources/css/app.css
    [INF]           Copied C:\Inetpub\wwwroot\y\resources\icons
    [INF]           Copied C:\Inetpub\wwwroot\y\resources\startup
    [INF]           Resolving your application dependencies (file:///C:/Inetpub/wwwr
    oot/y/index.html)
    [INF]           Compiling app.js and dependencies
    [INF]           Processing classPath entry : C:\Inetpub\wwwroot\y\sencha-compile
    -temp-dir
    [INF]           Processing classPath entry : C:\Inetpub\wwwroot\y\touch\src
    [INF]           Processing classPath entry : C:\Inetpub\wwwroot\y\app.js
    [INF]           Processing classPath entry : C:\Inetpub\wwwroot\y\app
    [INF]           Processing class inheritance graph
    [INF]           Processing instantiation refereces to classes and aliases
    [INF]           Processing source dependencies
    [INF]           Concatenating output to file C:\Inetpub\wwwroot\y\build\y\packag
    e\app.js
    [INF]           Completed compilation.
    [INF]           Processed remote file touch/sencha-touch.js
    [INF]           Processed local file app.js
    [INF]           Minified app.js
    [INF]           Minified resources/css/app.css
    [INF]           Generated app.json
    [INF]           Embedded microloader into index.html
    [INF]           Packaging your application as a native app to C:\Inetpub\wwwroot
    \y\build\native ...
    [ERR]           failed running native packager
    [ERR]           Required field (versionCode) is missing from config file
    Failed to package application
    
    
    [ERR]           BUILD FAILED
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    [ERR]           C:\Inetpub\wwwroot\y\.sencha\app\build-impl.xml:120: javax.scrip
    t.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped
     com.sencha.exceptions.ExBuild: failed running native packager (<Unknown source>
    #673) in <Unknown source> at line number 673
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicExcept
    ion.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractComma
    nd.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaComm
    andTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:2
    2)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:87)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:91)
    [ERR]                   at com.sencha.command.BasePluginCommands$BaseNamePathCom
    mand.run(BasePluginCommands.java:135)
    [ERR]                   at com.sencha.command.app.AppCommands$BuildCommand.execu
    te(AppCommands.java:106)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]           Caused by: C:\Inetpub\wwwroot\y\.sencha\app\build-impl.xml:126:
    The following error occurred while executing this line:
    [ERR]           C:\Inetpub\wwwroot\y\.sencha\app\build-impl.xml:120: javax.scrip
    t.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped
     com.sencha.exceptions.ExBuild: failed running native packager (<Unknown source>
    #673) in <Unknown source> at line number 673
    [ERR]                   at org.apache.tools.ant.ProjectHelper.addLocationToBuild
    Exception(ProjectHelper.java:551)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    4)
    [ERR]                   at org.apache.tools.ant.taskdefs.CallTarget.execute(Call
    Target.java:105)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]                   at com.sencha.command.ant.AntCommand.execute(AntCommand.
    java:75)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   ... 31 more
    [ERR]           Caused by: C:\Inetpub\wwwroot\y\.sencha\app\build-impl.xml:120:
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedExcepti
    on: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (<Unkn
    own source>#673) in <Unknown source> at line number 673
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.toBuildExceptio
    n(ReflectUtil.java:183)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.throwBuildExcep
    tion(ReflectUtil.java:166)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
    til.java:110)
    [ERR]                   at org.apache.tools.ant.util.ReflectWrapper.invoke(Refle
    ctWrapper.java:81)
    [ERR]                   at org.apache.tools.ant.util.optional.JavaxScriptRunner.
    evaluateScript(JavaxScriptRunner.java:103)
    [ERR]                   at org.apache.tools.ant.util.optional.JavaxScriptRunner.
    executeScript(JavaxScriptRunner.java:67)
    [ERR]                   at org.apache.tools.ant.taskdefs.optional.script.ScriptD
    ef.executeScript(ScriptDef.java:350)
    [ERR]                   at org.apache.tools.ant.taskdefs.optional.script.ScriptD
    efBase.execute(ScriptDefBase.java:50)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.helper.SingleCheckExecutor.execu
    teTargets(SingleCheckExecutor.java:38)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    2)
    [ERR]                   ... 52 more
    [ERR]           Caused by: javax.script.ScriptException: sun.org.mozilla.javascr
    ipt.internal.WrappedException: Wrapped com.sencha.exceptions.ExBuild: failed run
    ning native packager (<Unknown source>#673) in <Unknown source> at line number 6
    73
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
    own Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
    own Source)
    [ERR]                   at javax.script.AbstractScriptEngine.eval(Unknown Source
    )
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
    til.java:108)
    [ERR]                   ... 69 more
    [ERR]           Caused by: sun.org.mozilla.javascript.internal.WrappedException:
     Wrapped com.sencha.exceptions.ExBuild: failed running native packager (<Unknown
     source>#673)
    [ERR]                   at sun.org.mozilla.javascript.internal.Context.throwAsSc
    riptRuntimeEx(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.MemberBox.invoke(
    Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.NativeJavaMethod.
    call(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.Interpreter.inter
    pretLoop(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.Interpreter.inter
    pret(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.InterpretedFuncti
    on.call(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.ContextFactory.do
    TopCall(Unknown Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine$1.superDo
    TopCall(Unknown Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine$1.doTopCa
    ll(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.ScriptRuntime.doT
    opCall(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.InterpretedFuncti
    on.exec(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal
    [ERR]           .Context.evaluateReader(Unknown Source)
    [ERR]                   ... 77 more
    [ERR]           Caused by: com.sencha.exceptions.ExBuild: failed running native
    packager
    [ERR]                   at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [ERR]                   at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    [ERR]                   at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    [ERR]                   at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    [ERR]                   at sun.org.mozilla.javascript.internal.MemberBox.newInst
    ance(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.NativeJavaClass.c
    onstructSpecific(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.NativeJavaClass.c
    onstruct(Unknown Source)
    [ERR]                   ... 86 more
    [ERR]           Total time: 30 seconds
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    C:\Inetpub\wwwroot\y\.sencha\app\build-impl.xml:120: javax.script.ScriptExceptio
    n: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exce
    ptions.ExBuild: failed running native packager (<Unknown source>#673) in <Unknow
    
    n source> at line number 673

    this is my packager.json file i dont know if it true or not ??
    Code:
    
    
    Code:
    {
    	
    	"applicationName":"y",
    
    
    	"applicationId":"com.mycompany.y",
    
    
    	"versionString":"1.0",
    
    
    	
    	"iconName":"resources/icons/Icon~ipad.png",
    
    
    	"inputPath":"build/native",
    
    
    	"outputPath":"build/",
    
    
    	"configuration":"Debug",
    
    
    	"platform":"Android",
    
    
    	"deviceType":"Universal",
    	"certificatePath":"C:\my-release-key.keystore",
    
    
    	"certificateAlias":"my-release-key",
    
    
    	"sdkPath":"C:/Android/android-sdk",
    	
    	
    	"orientations": [
    		"portrait",
    		"landscapeLeft",
    		"landscapeRight",
    		"portraitUpsideDown"
    	]
    }



    i install java and i assigin it variable like this
    C:\Program Files\Java\jdk1.7.0_10

    i have window 32-bit ??

    what i should do please any one have any idea helping me

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It says you need the versionCode setting, have you tried adding it?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
    efreetant is on a distinguished road

      0  

    Default


    Hi
    I have the same error
    Code:
    [ERR]           BUILD FAILED
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    [ERR]           D:\Ming\websites\widgets\sencha-touch-2.1.0\testapp
    \.sencha\app\build-impl.xml:121: javax.script.ScriptException: sun.org.mozilla.j
    avascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExBuild: fail
    ed running native packager (<Unknown source>#673) in <Unknown source> at line nu
    mber 673
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicExcept
    ion.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractComma
    nd.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaComm
    andTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:2
    2)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:87)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:91)
    [ERR]                   at com.sencha.command.BasePluginCommands$BaseNamePathCom
    mand.run(BasePluginCommands.java:135)
    [ERR]                   at com.sencha.command.app.AppCommands$BuildCommand.execu
    te(AppCommands.java:106)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]           Caused by: D:\Ming\websites\widgets\sencha-touch-2.1.0\examples\
    testapp\.sencha\app\build-impl.xml:127: The following error occurred while e
    xecuting this line:
    [ERR]           D:\Ming\websites\widgets\sencha-touch-2.1.0\testapp
    \.sencha\app\build-impl.xml:121: javax.script.ScriptException: sun.org.mozilla.j
    avascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExBuild: fail
    ed running native packager (<Unknown source>#673) in <Unknown source> at line nu
    mber 673
    [ERR]                   at org.apache.tools.ant.ProjectHelper.addLocationToBuild
    Exception(ProjectHelper.java:551)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    4)
    [ERR]                   at org.apache.tools.ant.taskdefs.CallTarget.execute(Call
    Target.java:105)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]                   at com.sencha.command.ant.AntCommand.execute(AntCommand.
    java:75)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   ... 31 more
    [ERR]           Caused by: D:\Ming\websites\widgets\sencha-touch-2.1.0\examples\
    testapp\.sencha\app\build-impl.xml:121: javax.script.ScriptException: sun.or
    g.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.Ex
    Build: failed running native packager (<Unknown source>#673) in <Unknown source>
     at line number 673
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.toBuildExceptio
    n(ReflectUtil.java:183)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.throwBuildExcep
    tion(ReflectUtil.java:166)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
    til.java:110)
    [ERR]                   at org.apache.tools.ant.util.ReflectWrapper.invoke(Refle
    ctWrapper.java:81)
    [ERR]                   at org.apache.tools.ant.util.optional.JavaxScriptRunner.
    evaluateScript(JavaxScriptRunner.java:103)
    [ERR]                   at org.apache.tools.ant.util.optional.JavaxScriptRunner.
    executeScript(JavaxScriptRunner.java:67)
    [ERR]                   at org.apache.tools.ant.taskdefs.optional.script.ScriptD
    ef.executeScript(ScriptDef.java:350)
    [ERR]                   at org.apache.tools.ant.taskdefs.optional.script.ScriptD
    efBase.execute(ScriptDefBase.java:50)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.helper.SingleCheckExecutor.execu
    teTargets(SingleCheckExecutor.java:38)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    2)
    [ERR]                   ... 52 more
    [ERR]           Caused by: javax.script.ScriptException: sun.org.mozilla.javascr
    ipt.internal.WrappedException: Wrapped com.sencha.exceptions.ExBuild: failed run
    ning native packager (<Unknown source>#673) in <Unknown source> at line number 6
    73
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
    own Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
    own Source)
    [ERR]                   at javax.script.AbstractScriptEngine.eval(Unknown Source
    )
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
    til.java:108)
    [ERR]                   ... 69 more
    [ERR]           Caused by: sun.org.mozilla.javascript.internal.WrappedException:
     Wrapped com.sencha.exceptions.ExBuild: failed running native packager (<Unknown
     source>#673)
    [ERR]                   at sun.org.mozilla.javascript.internal.Context.throwAsSc
    riptRuntimeEx(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.MemberBox.invoke(
    Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.NativeJavaMethod.
    call(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.Interpreter.inter
    pretLoop(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.Interpreter.inter
    pret(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.InterpretedFuncti
    on.call(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.ContextFactory.do
    TopCall(Unknown Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine$1.superDo
    TopCall(Unknown Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine$1.doTopCa
    ll(Unknown Source)
    [ERR]                   at sun.org.mozilla.javasc
    [ERR]           ript.internal.ScriptRuntime.doTopCall(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.InterpretedFuncti
    on.exec(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.Context.evaluateR
    eader(Unknown Source)
    [ERR]                   ... 77 more
    [ERR]           Caused by: com.sencha.exceptions.ExBuild: failed running native
    packager
    [ERR]                   at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [ERR]                   at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    [ERR]                   at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    [ERR]                   at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    [ERR]                   at sun.org.mozilla.javascript.internal.MemberBox.newInst
    ance(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.NativeJavaClass.c
    onstructSpecific(Unknown Source)
    [ERR]                   at sun.org.mozilla.javascript.internal.NativeJavaClass.c
    onstruct(Unknown Source)
    [ERR]                   ... 86 more
    [ERR]           Total time: 24 seconds
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    D:\Ming\websites\widgets\sencha-touch-2.1.0\testapp\.sencha\app\bui
    ld-impl.xml:121: javax.script.ScriptException: sun.org.mozilla.javascript.intern
    al.WrappedException: Wrapped com.sencha.exceptions.ExBuild: failed running nativ
    e packager (<Unknown source>#673) in <Unknown source> at line number 673
    This is my packager.json file
    Code:
    {
        
        "applicationName":"testapp",
            "applicationId":"com.sencha.testapp",
            "versionString":"1.0",
        "versionCode":"1.0",
            "iconName":"resources/icons/Icon~ipad.png",
            "inputPath":"D:/Ming/websites/widgets/sencha-touch-2.1.0/examples/testapp",
            "outputPath":"C:/Users/Ming/build",
            "configuration":"Debug",
            "platform":"AndroidEmulator",
            "deviceType":"Universal",
            "certificatePath":"debug.keystore",
            "certificateAlias":"androiddebugkey",
        "sdkPath":"C:/Users/Ming/android-sdks",
        "androidAPILevel":"15",
            "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    And I have my versioncode there.
    Any idea?
    Thanks

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    Vote Rating
    0
    msderosa is on a distinguished road

      0  

    Default try this

    try this


    I saw you post and the moderators "answer" pissed me off just enough that I wanted to look into this for you. Well it turn out the package code hasnt been ported to Linux yet so I wasn;t able to do a quick test. Nonetheless, I suspect that the packager.json file is missing a variable that is required for manifest in your Android *.apk file. (Probably a oversight / bug on Senchas part when the app was generated).
    So open up your packager.json file and after
    "androidAPILeve":"15",
    add another line
    "versionCode":"1",
    The version code has to be an integer valued string. You may also have to add a "versionName" key as a decimal string like, "versionName":"1.0" (????) but I'm just guessing at this point...Note also that there is a "versionString" key in the packager.json file. That is probably not equivalent to the "versionCode" that the build scripts are looking for.....although it could be a typo from someone who meant "versionCode". Who knows?

  5. #5
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
    efreetant is on a distinguished road

      0  

    Default


    Hi msderosa
    Thank you very much
    But I have versionCode in json file already.
    I dont think it is because of this 'versionCode'

  6. #6
    Sencha User
    Join Date
    Sep 2008
    Posts
    1
    Vote Rating
    0
    nanosassa is on a distinguished road

      0  

    Default Same Issue but error with SenchaLogManager

    Same Issue but error with SenchaLogManager


    Code:
    C:\wamp2.1\www\sencha\examples\kitchensink>sencha app build testing
    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] cmd-root-plugin.init-properties:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] app-build-impl:
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] find-cmd:
    [INF]
    [INF] -before-init:
    [INF]
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF]
    [INF] -after-init:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-build:
    [INF]
    [INF] sass:
    [INF]
    [INF] -before-sass:
    [INF]
    [INF] -sass:
    [INF] [shellscript]
    [INF] [shellscript] C:\wamp2.1\www\sencha\examples\kitchensink\resources\sass>co
    mpass compile --boring --force
    [INF] [shellscript] identical ../css/bb10.css
    [INF] [shellscript] identical ../css/sencha-touch.css
    [INF] [shellscript] identical ../css/wp.css
    [INF]
    [INF] -after-sass:
    [INF]
    [INF] page:
    [INF]
    [INF] -before-page:
    [INF]
    [INF] -page:
    [ERR] The following error occurred while executing this line:
    C:\wamp2.1\www\sencha\examples\kitchensink\.sencha\app\build-impl.xml:127: The f
    ollowing error occurred while executing this line:
    C:\wamp2.1\www\sencha\examples\kitchensink\.sencha\app\build-impl.xml:121: javax
    .script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: Referenc
    eError: "SenchaLogManager" is not defined. (<Unknown source>#6) in <Unknown sour
    ce> at line number 6
    Any approach?

    Thanks

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