Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Kitchen sink giving me erros

hello,
I imported kitchen sink but when i try to run it i get some errors for my android

[ERROR] C:\Program Files\Java\jdk1.6.0_21\bin\java.exe js: "C:\Titanium\KitchenSink\build\android\bin\assets\Resources\examples\table_view_api_controls.js", line 18: syntax error
[INFO] Compiling Android Resources… This could take some time
[ERROR] C:\Program Files\Java\jdk1.6.0_21\bin\java.exe
[ERROR] System Error while compiling Android classes.dex

any ideas on how to fix?

thanks guys!

— asked September 22nd 2010 by Luke Haviland
  • android
  • errors
0 Comments

6 Answers

  • Make a change to your tiapp.xml to force a full rebuild.

    — answered September 22nd 2010 by Don Thorp
    permalink
    0 Comments
  • THANK YOU

    but i do not know how to do that

    i have two tiapp.xml files

    one located in
    \test\build\android\bin\assets

    and the other in \test\

    and they look like this:
    how do i force build?
    <?xml version="1.0" encoding="UTF-8"?><ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.test</id>
    <name>Test</name>
    <version>1.0</version>
    <publisher>not specified</publisher>
    <url>not specified</url>
    <description>not specified</description>
    <copyright>not specified</copyright>
    <icon>appicon.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-style>default</statusbar-style>
    <statusbar-hidden>false</statusbar-hidden>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>4c088461-2a58-45d8-b35e-6e21582063a6</guid>
    <property name="ti.deploytype">development</property></ti:app>

    — answered September 22nd 2010 by Luke Haviland
    permalink
    0 Comments
  • Ignore the one in assets. Simply open it with a text editor, add a space at the bottom of the file and save it. All you're trying to do is change its timestamp.

    — answered September 22nd 2010 by Don Thorp
    permalink
    0 Comments
  • this is what the kitchen sink tiapp.xml file looks like

    <?xml version="1.0" encoding="UTF-8"?><ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.nolanwright.kitchensink</id>
    <name>KitchenSink</name>
    <version>1.0</version>
    <publisher>nwright</publisher>
    <url>appcelerator.com</url>
    <copyright>2009 by nwright</copyright>
    <description>No description provided</description>
    <icon>default_app_logo.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-hidden>false</statusbar-hidden>
    <analytics>true</analytics>
    <guid>6fe33f33fd1f4e95a06d2d217170866d</guid>
    <property name="ti.android.debug" type="bool">false</property>

    <!– this will only work with our dev keystore and not on a production device! –>
    <property name="ti.android.google.map.api.key.development">0ZnKXkWA2dIAu2EM-OV4ZD2lJY3sEWE5TSgjJNg</property>
    <!– get yours at http://code.google.com/android/maps-api-signup.html –>
    <property name="ti.android.google.map.api.key.production">GET_ME_FROM_GOOGLE</property>

    </ti:app>

    i added a bunch of space but nothing happen, i am not sure what you meant by space, literally just hit the space bar and hit save?

    i am still getting this these errors

    [INFO] Detected tiapp.xml change, forcing full re-build…
    [ERROR] C:\Java\jdk1.6.0_21\bin\java.exe js: "C:\Titanium\appcelerator-KitchenSink-2528bba\KitchenSink\build\android\bin\assets\Resources\examples\table_view_api_controls.js", line 18: syntax error
    [INFO] Compiling Android Resources… This could take some time
    [ERROR] System Error while compiling Android classes.dex
    [ERROR] C:\Java\jdk1.6.0_21\bin\java.exe

    HelloWorld and other apps work just not kitchen sink.

    any help, thanks guys.

    — answered September 23rd 2010 by Luke Haviland
    permalink
    0 Comments
  • this is what the kitchen sink tiapp.xml file looks like

    <?xml version="1.0" encoding="UTF-8"?><ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.nolanwright.kitchensink</id>
    <name>KitchenSink</name>
    <version>1.0</version>
    <publisher>nwright</publisher>
    <url>appcelerator.com</url>
    <copyright>2009 by nwright</copyright>
    <description>No description provided</description>
    <icon>default_app_logo.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-hidden>false</statusbar-hidden>
    <analytics>true</analytics>
    <guid>6fe33f33fd1f4e95a06d2d217170866d</guid>
    <property name="ti.android.debug" type="bool">false</property>

    <!– this will only work with our dev keystore and not on a production device! –>
    <property name="ti.android.google.map.api.key.development">0ZnKXkWA2dIAu2EM-OV4ZD2lJY3sEWE5TSgjJNg</property>
    <!– get yours at http://code.google.com/android/maps-api-signup.html –>
    <property name="ti.android.google.map.api.key.production">GET_ME_FROM_GOOGLE</property>

    </ti:app>

    i added a bunch of space but nothing happen, i am not sure what you meant by space, literally just hit the space bar and hit save?

    i am still getting this these errors

    [INFO] Detected tiapp.xml change, forcing full re-build…
    [ERROR] C:\Java\jdk1.6.0_21\bin\java.exe js: "C:\Titanium\appcelerator-KitchenSink-2528bba\KitchenSink\build\android\bin\assets\Resources\examples\table_view_api_controls.js", line 18: syntax error
    [INFO] Compiling Android Resources… This could take some time
    [ERROR] System Error while compiling Android classes.dex
    [ERROR] C:\Java\jdk1.6.0_21\bin\java.exe

    HelloWorld and other apps work just not kitchen sink.

    any help, thanks guys.

    — answered September 23rd 2010 by Luke Haviland
    permalink
    0 Comments
  • Please set the Log level to Trace and capture the entire log. Attach the file or put it in pastie and on space, yes literally just the space bar somewhere it doesn't matter to force a full build.

    — answered September 23rd 2010 by Don Thorp
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.