-
18 Feb 2013 4:19 PM #51
Brice, excellent tool... just what I was looking for !!!!
I am set building package in Windows environment for android, one thing I am missing is build.xml file within the build folder. It looks like ant is not able to find the file and my debug / emulate step doesn't work.
Would can you give any pointers on why build.xml file might be missing in build\<my-app>\android folder?
Thanks,
- A
-
18 Feb 2013 4:21 PM #52
Brice has already answered this if you scroll to the page 2 (i believe)...
You are probably using newer version of PhoneGap / Cordova (2.3+)..
-
18 Feb 2013 6:39 PM #53
Just to clarify, can you use Adobe Phonegap Build with Sencha Architect 2.0? Is there a particular build of Cordova or PhoneGap you would use?
-
19 Feb 2013 1:04 AM #54
thanks
but also when i add the following script
i see the following errorCode:{ title: 'Welcome', iconCls: 'home', styleHtmlContent: true, tpl:[ 'device: {name}</br>', 'phonegap version {cordova}' ].join(''), listeners :{ initialize : function(){ this.setData(device); } } }
Uncaught ReferenceError: device is not defined
and its not working on virtual device, any idea please ?
best regards
-
19 Feb 2013 1:51 AM #55
i have generated .apk files located in bin folder , but debug still not working , here is my build.xml file
HTML Code:<import file="${basedir}/.sencha/app/build-impl.xml"/> <import file="/sencha-cordova-builder-master/build-cordova.xml" /> <target name="-after-build" depends="-build-android" /> <target name="-after-build-android"> <exec executable="ant"> <arg value="-buildfile" /> <arg value="${cordova.android.project}/build.xml" /> <arg value="debug" /> </exec> <exec executable="adb"> <arg value="install" /> <arg value="-r" /> <arg value="${cordova.android.project}/bin/${app.name}-debug.apk" /> </exec> </target>
and i get the following error
HTML Code:[ERR] BUILD FAILED [ERR] com.sencha.exceptions.BasicException: The following error occurr ed while executing this line: [ERR] C:\wamp\www\myApp1\build.xml:9: Execute failed: java.io.IOExcept ion: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified [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:\sencha-cordova-builder-master\build-cordova-androi d.xml:40: The following error occurred while executing this line: [ERR] C:\wamp\www\myApp1\build.xml:9: Execute failed: java.io.IOExcept ion: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified [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:\wamp\www\myApp1\build.xml:9: Execute failed: java. io.IOException: Cannot run program "ant": CreateProcess error=2, The system cann ot find the file specified [ERR] at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTa sk.java:675) [ERR] at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTa sk.java:498) [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: java.io.IOException: Cannot run program "ant": Create Process error=2, The system cannot find the file specified [ERR] at java.lang.ProcessBuilder.start(Unknown Source) [ERR] at java.lang.Runtime.exec(Unknown Source) [ERR] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLa uncher.exec(Execute.java:862) [ERR] at org.apache.tools.ant.taskdefs.Execute.launch(Execute. java:481) [ERR] at org.apache.tools.ant.taskdefs.Execute.execute(Execute .java:495) [ERR] at org.apache.tools.ant.taskdefs.ExecTask.runExecute(Exe cTask.java:631) [ERR] at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTa sk.java:672) [ERR] ... 65 more [ERR] Caused by: java.io.IOException: CreateProcess error=2, The syste m cannot find the file specified [ERR] at java.lang.ProcessImpl.create(Native Method) [ERR] at java.lang.ProcessImpl.<init>(Unknown Source) [ERR] at java.lang.ProcessImpl.start(Unknown Source) [ERR] ... 72 more [ERR] Total time: 56 seconds [ERR] com.sencha.exceptions.BasicException: The following error occurr ed while executing this line: C:\wamp\www\myApp1\build.xml:9: Execute failed: java.io.IOException: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified
best regards
-
19 Feb 2013 6:08 AM #56
Resolved Build Issue in Windows
Resolved Build Issue in Windows
Fixed the issue. I just had to follow the steps provided here to ensure cordova / phonegap was building properly.
http://simonmacdonald.blogspot.ca/20...o-work-on.html
-
19 Feb 2013 10:37 AM #57
-
19 Feb 2013 11:22 AM #58
-
19 Feb 2013 11:26 AM #59
@webdev13, sorry I am not sure what could possibly be wrong. I am pretty new to using ST2 and PhoneGap.
I had some weird issues running the app initially. What helped me was
1. making sure _android.built file is deleted before running the app build.
2. delete build/<app>/android folder and let the build create it from scratch.
If I do both my issues get resolved. That's all I can say... not sure why I would have to delete android build at this point.
-
19 Feb 2013 6:03 PM #60
@webdev13, this snippet from your build output tells the story:
[ERR] BUILD FAILED[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:[ERR] C:\wamp\www\myApp1\build.xml:9: Execute failed: java.io.IOException: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified
you need to install ant from here: http://ant.apache.org/
Once you do that, try to build again. If you're on windows, make sure you delete the _android.built file before rebuilding.
Let us know if you still need help.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.


Reply With Quote