Titanium Community Questions & Answer Archive

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

Error in KitchenSink

when i try to run kitchensink application i am getting Error: [ERROR] Failed installing com.nolanwright.kitchensink: pkg: /data/local/tmp/app.apk

can any one please tell how to resolve this.

— asked June 22nd 2010 by Rajesh Babu
  • android
  • error
  • in
  • kitchensink
0 Comments

3 Answers

  • In Titanium's "Test & Build", Change your Filter from "Info" to debug. Also, look for any red error or orange warning text.

    Some things to check: your Java SDK is current, and that you have Android v1.6 installed (even if you're not building your app against 1.6, Titanium needs it).

    — answered June 22nd 2010 by Scott Medynski
    permalink
    0 Comments
  • hi Scott., Thanks for your answer no i didn't got any error but still i am unable to find my application installed in mobile emulator.

    — answered June 22nd 2010 by Rajesh Babu
    permalink
    0 Comments
  • I am also having this exact same issue.

    
    [INFO] Building KitchenSink for Android ... one moment
    [INFO] Copying project resources..
    [INFO] Tiapp.xml unchanged, skipping class generation
    [INFO] Manifest unchanged, skipping Java build
    [INFO] Installing application on device
    [ERROR] Failed installing com.nolanwright.kitchensink: pkg: /data/local/tmp/app.apk
    [INFO] Android Emulator has exited
    

    Mac 10.6

    Titanium Developer 1.2.1:

    SDK 2.1-Upd

    Screen Res - 400,432

    — answered June 22nd 2010 by Jared Folkins
    permalink
    9 Comments
    • Does the emulator launch, but the app does not open?

      — commented June 22nd 2010 by Kevin Whinnery
    • So I did a recursive search to see if I could find the "app.apk"

      sudo find / -name "app.apk"
      

      This is what I got

      /titaniumProjects/KitchenSink/0.8.1/KitchenSink/build/android/bin/app.apk
      /titaniumProjects/KitchenSink/1.3.x/KitchenSink/build/android/bin/app.apk
      

      /titaniumProjects is a directory right off of / and is where my projects are located.

      I don't even have a /data directory so I am at a loss as to how this is trying to add the dependancy.

      — commented June 22nd 2010 by Jared Folkins
    • Yup, emulator launches and app does not open.

      — commented June 22nd 2010 by Jared Folkins
    • Also, just for the record. If I just run the basic "app" with "window 1/2" the application loads correctly on any screen resolution for me under SDK 2.1-upd

      — commented June 22nd 2010 by Jared Folkins
    • afk - check back in 60 minutes

      — commented June 22nd 2010 by Jared Folkins
    • Just tested this on a second OSC Macbook Pro, same result.

      — commented June 22nd 2010 by Jared Folkins
    • *OSX

      — commented June 22nd 2010 by Jared Folkins
    • Alright, by putting the application into trace, I was able to get this output.
      The crazy thing is that I didn't know if titanium wrote this to a log file, so I issuing a CMD+A/CMD+V every second in the output window.

      [INFO] Launching Android emulator...one moment
      [DEBUG] From: /Users/[redacted]/android-sdk-mac_86/tools/emulator
      [DEBUG] SDCard: /Users/[redacted]/.titanium/android2.sdcard
      [DEBUG] AVD ID: 5
      [DEBUG] AVD Skin: WQVGA400
      [DEBUG] SDK: /Users/[redacted]/android-sdk-mac_86
      [DEBUG] /Users/[redacted]/android-sdk-mac_86/tools/emulator -avd titanium_5_WQVGA400 -port 5560 -sdcard /Users/[redacted]/.titanium/android2.sdcard -logcat '*:d *' -no-boot-anim -partition-size 128
      [TRACE] 2010-06-22 13:30:09.029 emulator[69727:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
      [INFO] Building KitchenSink for Android ... one moment
      [TRACE] # I/vold ( 27): Android Volume Daemon version 2.0
      [TRACE] I/DEBUG ( 28): debuggerd: May 6 2010 12:54:26
      [TRACE] D/qemud ( 35): entering main loop
      [TRACE] D/qemud ( 35): multiplexer_handle_control: unknown control message (18 bytes): 'ko:unknown command'
      [TRACE] I/vold ( 27): New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118
      [TRACE] I/vold ( 27): Disk (blkdev 179:0), 131072 secs (64 MB) 0 partitions
      [TRACE] I/vold ( 27): New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0
      [TRACE] I/vold ( 27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard'
      [TRACE] I/vold ( 27): Aborting start of /sdcard (bootstrap = 1)
      [TRACE] I/vold ( 27): Volmgr not ready to handle device
      [TRACE] E/vold ( 27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
      [TRACE] E/vold ( 27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
      [TRACE] E/vold ( 27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
      [TRACE] E/vold ( 27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
      [TRACE] D/vold ( 27): Bootstrapping complete
      

      — commented June 22nd 2010 by Jared Folkins
    • I should mention that titanium hard crashes when run the test+package in TRACE or DEBUG. If you want the output, I could email it to someone.

      — commented June 22nd 2010 by Jared Folkins
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.