Titanium Community Questions & Answer Archive

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

Failed to launch kitchen sink (Android) on 1.2.1

I have problem launching the kitchen sink, info is as follow:-

[ERROR] D:\android-sdk-windows\tools\apkbuilder.bat

[ERROR] System Error while compiling Android classes.dex

[ERROR] D:\android-sdk-windows\tools\zipalign.exe Unable to open

'D:\Documents\Workspace\KitchenSink\build\android\bin\app.apk' as zip archive

i've also attached the trace here

just in case u need more info about my android sdk, here is the output for "android list" command.

Thanks in advanced for anyone who can help..!

— asked September 24th 2010 by Kah Hwee Gan
  • android
  • kitchen
  • mobile
  • sink
  • win32
  • win7
0 Comments

3 Answers

  • Accepted Answer

    that error about apkbuilder.bat is really a warning. It occurs on our builds to and they're succeeding so far. It can't find classes.dex try update the timestamp of your tiapp.xml file buy adding a space and removing it. That will force a full build.

    — answered September 25th 2010 by Don Thorp
    permalink
    0 Comments
  • Several things.

    1) you can't run Kitchen Sink without using a Google APIs emulator. You haven't downloaded any.

    2) Since you've already created emulators through titanium. You need to run the android command and delete all titanium_… AVDs and don't create any more until you've downloaded all of the Google APIs.

    3) Unless you're doing other android development, you don'tneed the 1.1 or 1.5 APIs because they're not supported by Titanium.

    — answered September 25th 2010 by Don Thorp
    permalink
    0 Comments
  • Hi Don,

    Thanks for responding!

    I've deleted all the titanium AVD, android 1.1 and 1.5, as well as downloaded all the google APIs.

    However the problem still persists.

    New trace here
    Updated android list here

    It seems like the command apkbuilder is deprecated. This is what i get when i enter the command:

    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    THIS TOOL IS DEPRECATED and may stop working at any time!

    If you wish to use apkbuilder for a custom build system, please look at the
    com.android.sdklib.build.ApkBuilder which provides support for
    recent build improvements including library projects.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    — answered September 25th 2010 by Kah Hwee Gan
    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.