Titanium Community Questions & Answer Archive

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

KitchenSink Win64 won't emulate

I cannot get Kitchen Sink app to compile in the Android emulator, the significant trace errors I get are:

[ERROR] C:\android-sdk\tools\apkbuilder.bat
[TRACE] THIS TOOL IS DEPRECATED. See –help for more information.
[TRACE]
[TRACE] C:\Work\Appcelerator\KitchenSink\build\android\bin\classes.dex does not exist
[DEBUG] C:\Java\jdk1.6.0_21\bin\jarsigner.exe -storepass tirocks -keystore C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\dev_keystore -signedjar C:\Work\Appcelerator\KitchenSink\build\android\bin\app.apk C:\Work\Appcelerator\KitchenSink\build\android\bin\app-unsigned.apk tidev
[DEBUG] C:\android-sdk\tools\zipalign.exe -v 4 C:\Work\Appcelerator\KitchenSink\build\android\bin\app.apk C:\Work\Appcelerator\KitchenSink\build\android\bin\app.apkz
[ERROR] C:\android-sdk\tools\zipalign.exe Unable to open 'C:\Work\Appcelerator\KitchenSink\build\android\bin\app.apk' as zip archive
[ERROR] System Error while compiling Android classes.dex

— asked September 20th 2010 by Dan Mackie
  • kitchensink
  • win64
  • win7
0 Comments

5 Answers

  • I get the same error on Mac OS/X :(

    — answered October 1st 2010 by Rasmus Burkal
    permalink
    0 Comments
  • Had the same problem.

    Fixed by changing SDK from 1.6 to API 1.6. After launching a few times it finally started :)

    — answered October 13th 2010 by Deniss Fedotovs
    permalink
    0 Comments
  • I had the same problem and this is what solved for me:

    1) Open builder.py in the 1.4.x directory
    2) Change Maximum Heap value from 512 to 1024 in the following line
    if platform.system() == 'Windows':
    dex_args = [self.java, '-Xmx512M'

    — answered October 14th 2010 by Yusuf Abdi
    permalink
    0 Comments
  • I can intermittently achieve a compile to the emulator. I've also achieved a load to phone although there was a reported error the app actually was installed and working. The emulator issue was quelled (but not completely solved) when I deleted from my environment vars the Flash IDE fix for large project compiles, JAVA_TOOL_OPTIONS -Xmx1024M.

    So yes working sometimes, but still feels like a little bit of beta app to me (if any core devs are listening!).

    — answered October 14th 2010 by Dan Mackie
    permalink
    0 Comments
  • I don't think there is a definitive answer to a reliable compile setup, at least for those who not super technical (I am not, but have a good technical ability), I think one has to play around for the right thing for your system environment. BTW I've not tried anything on the Mac, this is a W7 only post.

    — answered October 14th 2010 by Dan Mackie
    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.