1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    1
    Dsolish is on a distinguished road

      1  

    Default Unanswered: Error when packaging native app for Android in Sencha 2

    Unanswered: Error when packaging native app for Android in Sencha 2


    Hi everyone, when i try to package my android app i get the following error, i dont know waht it means, i have package other apps without problem (more simple, like the example in the documentation), but i cannot seem to get around this one. Thanks for the help....

    [1m[32m[INFO][39m[22m Deploying your application to C:\inetpub\wwwroot\PandaHouse\build\package
    [1m[32m[INFO][39m[22m Copied sdk/sencha-touch.js
    [1m[32m[INFO][39m[22m Copied app.js
    [1m[32m[INFO][39m[22m Copied resources/css/app.css
    [1m[32m[INFO][39m[22m Copied resources/images
    [1m[32m[INFO][39m[22m Copied resources/icons
    [1m[32m[INFO][39m[22m Copied resources/startup
    [1m[32m[INFO][39m[22m Resolving your application dependencies (file:///C:/inetpub/wwwroot/PandaHouse/index.html)
    [1m[32m[INFO][39m[22m Found 191 dependencies. Concatenating all into 'C:\inetpub\wwwroot\PandaHouse\build\package\app.js'
    [1m[32m[INFO][39m[22m Processed sdk/sencha-touch.js
    [1m[32m[INFO][39m[22m Minifying sdk/sencha-touch.js
    [1m[32m[INFO][39m[22m Processed app.js
    [1m[32m[INFO][39m[22m Minifying app.js
    [1m[32m[INFO][39m[22m Minifying resources/css/app.css
    [1m[32m[INFO][39m[22m Minified sdk/sencha-touch.js
    [1m[32m[INFO][39m[22m Minified app.js
    [1m[32m[INFO][39m[22m Minified resources/css/app.css
    [1m[32m[INFO][39m[22m Generated app.json
    [1m[32m[INFO][39m[22m Embedded microloader into index.html
    [1m[32m[INFO][39m[22m Packaging your application as a native app...
    [1m[32m[INFO][39m[22m Created directory C:\inetpub\wwwroot\PandaHouse\build\native\src\com\TEC\PandaHouse
    Added file C:\inetpub\wwwroot\PandaHouse\build\native\src\com\TEC\PandaHouse\STActivity.java
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\res
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\bin
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\libs
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\res\values
    Added file C:\inetpub\wwwroot\PandaHouse\build\native\res\values\strings.xml
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\res\layout
    Added file C:\inetpub\wwwroot\PandaHouse\build\native\res\layout\main.xml
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\res\drawable-hdpi
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\res\drawable-mdpi
    Created directory C:\inetpub\wwwroot\PandaHouse\build\native\res\drawable-ldpi
    Added file C:\inetpub\wwwroot\PandaHouse\build\native\AndroidManifest.xml
    Added file C:\inetpub\wwwroot\PandaHouse\build\native\build.xml
    Added file C:\inetpub\wwwroot\PandaHouse\build\native\proguard-project.txt
    Buildfile: C:\inetpub\wwwroot\PandaHouse\build\native\build.xml


    -set-mode-check:


    -set-debug-files:


    -check-env:
    [checkenv] Android SDK Tools Revision 20.0.1
    [checkenv] Installed at C:\dev\Android\android-sdk


    -setup:
    [echo] Project Name: PandaHouse
    [gettype] [Fatal Error] :23:12: El contenido no est� permitido en la secci�n final.
    ""C:\dev\Android\android-sdk\tools\android" create project --target android-14 --name PandaHouse --activity STActivity --path "C:\inetpub\wwwroot\PandaHouse\build\native\/" --package com.TEC.PandaHouse"
    Could not run ant with error: 1
    Failed to package application
    [1m[31m[ERROR][39m[22m
    BUILD FAILED
    C:\dev\Android\android-sdk\tools\ant\build.xml:388: org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 12; El contenido no est� permitido en la secci�n final.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:463)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:510)
    at com.android.ant.GetTypeTask.execute(GetTypeTask.java:85)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java: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(DefaultExecutor.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)
    --------------- linked to ------------------
    javax.xml.xpath.XPathExpressionException
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:468)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:510)
    at com.android.ant.GetTypeTask.execute(GetTypeTask.java:85)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java: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(DefaultExecutor.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)
    Caused by: org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 12; El contenido no est� permitido en la secci�n final.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:463)
    ... 18 more


    Total time: 0 seconds

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    macwebdev is on a distinguished road

      0  

    Default


    I'm running into this issue also

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    1
    Dsolish is on a distinguished road

      0  

    Default


    The things is that packing simple apps (example) there is no problem, but when i try to do a more complex one (with gui things from the kitchen sink example) it doesnt work....

  4. #4
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    1
    afialvi is on a distinguished road

      0  

    Default Same Problem

    Same Problem


    Same Problem , Please Give any solutions .....!
    Its really teasing to tackle.