1. #91
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default


    Hi Brice / Webdev13

    I missed the platform-tools path.. now the adb command is working.. but some other error now.. sorry for bothering too much

    D:\sencha\hello\build\hello\android>ant debug && adb install -r ./bin/hello-debug.apk
    Buildfile: D:\sencha\hello\build\hello\android\build.xml


    -set-mode-check:


    -set-debug-files:


    -check-env:
    [checkenv] Android SDK Tools Revision 20.0.3
    [checkenv] Installed at C:\Program Files\Android\android-sdk


    -setup:
    [echo] Project Name: hello
    [gettype] Project Type: Application


    -set-debug-mode:


    -debug-obfuscation-check:


    -build-setup:
    [echo] Resolving Build Target for hello...
    [gettarget] Project Target: GALAXY Tab Addon
    [gettarget] Vendor: Samsung Electronics Co., Ltd.
    [gettarget] Platform Version: 2.2
    [gettarget] API level: 8
    [echo] ----------
    [echo] Creating output directories if needed...
    [echo] ----------
    [echo] Resolving Dependencies for hello...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [dependency] API<=15: Adding annotations.jar to the classpath.
    [echo] ----------
    [echo] Building Libraries with 'debug'...
    [subant] No sub-builds to iterate on


    -pre-build:


    -code-gen:
    [mergemanifest] Found Deleted Target File
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
    [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...
    [aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:20: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
    [aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:22: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
    [aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:49: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
    [aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:52: error: Error: String types not allowed (at 'configChanges' with value 'orientation|keyboardHidden|keyboard|screenSize|locale').


    BUILD FAILED
    C:\Program Files\Android\android-sdk\tools\ant\build.xml:621: The following error occurred while executing this line:
    C:\Program Files\Android\android-sdk\tools\ant\build.xml:657: null returned: 1


    Total time: 1 second
    can't find './bin/hello-debug.apk' to install

    -Ram

  2. #92
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    im trying to help , and i hope i can .
    please make that you have installed everything , open command line and type ant , android , java , adb , check that everything is working please , then see in the thread how build.xml should be look like .

  3. #93
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default


    Hi Webdev13

    I have all command working at my windows ..but still the same error

    [INF] -check-os:
    [INF] -make-unix-property-paths:
    [INF] -make-windows-property-paths:
    [INF] -init-properties:
    [INF] -is-android-built:
    [INF] -set-windows-create-script:
    [INF] -set-unix-create-script:
    [INF] -is-android-init-ready:
    [INF] [echo] checking android initialization using the following
    resources:
    [INF] [echo] cordova library D:phonegap-2.2.0
    [INF] [echo] android tools D:phonegap-2.2.0\lib\android\bin
    [INF] [echo] android create script D:phonegap-2.2.0\lib\android\b
    in\\create.bat
    [INF] [echo] android project D:\sencha\hello\build\hello\android
    [INF] [echo] android project built state...false
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: one or more of the resourc
    es required to initialize the android project cannot be resolved
    [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)

    Dont know how to proceed further.
    -Ram

  4. #94
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    someone in the thread had problem like urs , go to page # 3 , and read Brice answer please

  5. #95
    Sencha User
    Join Date
    Jun 2012
    Posts
    136
    Vote Rating
    1
    munder is on a distinguished road

      0  

    Default


    Good news, Brice. I changed the reference to source in my app.json file from touch/sencha-touch.js to touch/sencha-touch-all.js and was then, debugging from eclipse, able to get past the loading screen. There are problems once I get past that, but it's progress of a sort.
    Last edited by munder; 5 Mar 2013 at 3:32 AM. Reason: got it wrong

  6. #96
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default


    Hi Brice / Webdev13

    Good news is that after switching to Mac environment .. build package is working fine.

    I get both iOS and Android simulator showing it fine.

    But when I do build native.. some conflict in the packing the files

    I have configured packager.json to use Android.. but when doing build native.. it picking cordova_ios.js instead of cordova_android.js file.

    Pasting the app.json file packed in .apk

    {"id":"5a97e071-eebe-4b31-be6b-0dab1203ac26","js":[{"path":"cordova-ios.js","type":"js"},{"bundle":true,"path":"app.js",
    "update":"delta","type":"js"}],"css":[{"path":"resources/css/app.css","update":"delta","type":"css"}]}

    Regards
    -Ram

  7. #97
    Sencha User
    Join Date
    Dec 2012
    Posts
    5
    Vote Rating
    0
    shaileshelan is on a distinguished road

      0  

    Default


    Hi Brice,

    I am building app with sencha touch 2.1 and phonegap 2.2 on window 7 using you tutorial. I am able to build app but android folder is not generating on given path. All command (java, javac, android, ant) all are working on my cmd. See my attached log of build command. Please guide me.

    log.png
    Thanks,
    shailesh

  8. #98
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
    invincible007 is on a distinguished road

      0  

    Default Sencha cordova builder fails to build ios project

    Sencha cordova builder fails to build ios project


    Hi,

    I am using sencha cordova builder to build xcode project native app for my application. I am stuck at following error when I execute "sencha app build package" command in terminal.

    I am using cordova-2.4.0, sencha 2.x. Can some please help me with this?


    Successfully deployed your application to /Users/ngarach/Documents/inetpub/wwwroot/Mobile/Apps/MobileCompanion/Source/build/MobileCompanion/package
    [INF]
    [INF] -after-page:
    [INF]
    [INF] run:
    [INF]
    [INF] -build:
    [INF]
    [INF] -check-os:
    [INF]
    [INF] -make-unix-property-paths:
    [INF]
    [INF] -make-windows-property-paths:
    [INF]
    [INF] -init-properties:
    [INF]
    [INF] -is-ios-built:
    [INF]
    [INF] -set-windows-create-script:
    [INF]
    [INF] -set-unix-create-script:
    [INF]
    [INF] -is-ios-init-ready:
    [INF] [echo] checking ios initialization using the following resources:
    [INF] [echo] cordova library /Users/ngarach/Documents/cordova-2.4.0/cordova-ios
    [INF] [echo] ios tools /Users/ngarach/Documents/cordova-2.4.0/cordova-ios/bin
    [INF] [echo] ios create script /Users/ngarach/Documents/cordova-2.4.0/cordova-ios/bin/create
    [INF] [echo] ios project /Users/ngarach/Documents/inetpub/wwwroot/Mobile/Apps/MobileCompanion/Source/build/MobileCompanion/ios
    [INF] [echo] ios project built state...false
    [INF]
    [INF] -before-init-ios-internal:
    [INF]
    [INF] -before-init-ios:
    [INF]
    [INF] -init-ios-internal:
    [INF] [echo] initializating ios build...
    [INF] [echo] creating ios project with the following details:
    [INF] [echo] project path: /Users/ngarach/Documents/inetpub/wwwroot/Mobile/Apps/MobileCompanion/Source/build/MobileCompanion/ios
    [INF] [echo] project namespace: com.example.MobileCompanion
    [INF] [echo] project name: MobileCompanion
    [INF] [echo] ios project successfully created at /Users/ngarach/Documents/inetpub/wwwroot/Mobile/Apps/MobileCompanion/Source/build/MobileCompanion/ios
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.FileNotFoundException: File '''/Users/ngarach/Documents/cordova-2.4.0/cordova-ios/VERSION''' does not exist (<Unknown source>#3) in <Unknown source> at line number 3
    [ERR] at com.sencha.exceptions.BasicException.wrap(BasicException.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(AbstractCommand.java:182)
    [ERR] at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:69)
    [ERR] at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.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(Project.java:1399)
    [ERR] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR] at org.apache.tools.ant.Project.executeTargets(Project.java: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$BasePluginCommand.run(BasePluginCommands.java:94)
    [ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:98)
    [ERR] at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:142)
    [ERR] at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:116)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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: /Users/ngarach/Documents/sencha-cordova-builder/build-cordova-ios.xml:60: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.FileNotFoundException: File '''/Users/ngarach/Documents/cordova-2.4.0/cordova-ios/VERSION''' does not exist (<Unknown source>#3) in <Unknown source> at line number 3
    [ERR] at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
    [ERR] at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
    [ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
    [ERR] at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.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.execute(Script.java:52)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.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(Project.java:1399)
    [ERR] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR] at org.apache.tools.ant.Project.executeTargets(Project.java: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 Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR] ... 31 more
    [ERR] Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.FileNotFoundException: File '''/Users/ngarach/Documents/cordova-2.4.0/cordova-ios/VERSION''' does not exist (<Unknown source>#3) in <Unknown source> at line number 3
    [ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224)
    [ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:240)
    [ERR] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
    [ERR] ... 55 more
    [ERR] Caused by: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.FileNotFoundException: File '''/Users/ngarach/Documents/cordova-2.4.0/cordova-ios/VERSION''' does not exist (<Unknown source>#3)
    [ERR] at sun.org.mozilla.javascript.internal.Context.throwAsScriptRuntimeEx(Context.java:1798)
    [ERR] at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:196)
    [ERR] at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(NativeJavaMethod.java:245)
    [ERR] at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1706)
    [ERR] at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849)
    [ERR] at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162)
    [ERR] at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:429)
    [ERR] at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116)
    [ERR] at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109)
    [ERR] at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
    [ERR] at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173)
    [ERR] at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1159)
    [ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214)
    [ERR] ... 62 more
    [ERR] Caused by: java.io.FileNotFoundException: File '''/Users/ngarach/Documents/cordova-2.4.0/cordova-ios/VERSION''' does not exist
    [ERR] at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
    [ERR] at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
    [ERR] at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:167)
    [ERR] ... 73 more
    [ERR]
    [ERR] Total time: 12 seconds
    [ERR] com.sencha.exceptions.BasicException: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.FileNotFoundException: File '/Users/ngarach/Documents/cordova-2.4.0/cordova-ios/VERSION' does not exist (<Unknown source>#3) in <Unknown source> at line number 3

  9. #99
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    12
    Vote Rating
    0
    quadzilla is on a distinguished road

      0  

    Default Great Tool! But how far can it go?

    Great Tool! But how far can it go?


    I love your ant build tool, saves me a ton! However if I understand it correctly it only takes me as far as creating a Xcode app for testing. (Yes, using this for IOS). I run sencha app build testing and it creates an xcode project in the ios directory of the build directory which is perfect!

    However is that as far as I can go? Can your build tool create an .app or .ipa file?

    Thanks!

  10. #100
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    322
    Vote Rating
    4
    Scorpie is on a distinguished road

      0  

    Default


    Quote Originally Posted by quadzilla View Post
    However is that as far as I can go? Can your build tool create an .app or .ipa file?

    Thanks!
    Nope. It will create a barebone project, not package it.
    I`m from Holland!