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 doesn't run on Android emulator

I'm trying to run the KitchenSink App with the Android emulator. Titanium says:

[TRACE] Launch output: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.nolanwright.kitchensink/.KitchensinkActivity }
[TRACE] Error type 3
[TRACE] Error: Activity class {com.nolanwright.kitchensink/com.nolanwright.kitchensink.KitchensinkActivity} does not exist.
[TRACE]
[INFO] Deployed KitchenSink ... Application should be running.
[TRACE] D/dalvikvm( 60): threadid=17: bogus mon 1+0>0; adjusting`

But the application is not running!
I'm using:
Titanium Developer 1.2.1
Android SDK 1.6

Any thoughts? Any help is much appreciated…

— asked April 7th 2010 by Ben Babics
  • android
  • kitchensink
  • mobile
0 Comments

13 Answers

  • Accepted Answer

    This looks to be the culprit:

    E/PackageManager( 53): Package com.nolanwright.kitchensink requires unavailable shared library com.google.android.maps; failing!
    

    You need to make sure you're using "APIs 1.6" when you launch KitchenSink. "APIs" is short for "Google APIs" which is needed for any app that has a dependency on Maps

    — answered April 7th 2010 by Marshall Culpepper
    permalink
    0 Comments
  • Would you mind dropping the entire log into a pastie so I can see if there are compile errors before it.

    — answered April 7th 2010 by Don Thorp
    permalink
    0 Comments
  • Many encounter problems with the android emulator because of the longer waiting time for the emulator to load.

    Have you waited until the emulator to be fully loaded; may take a few minutes.

    — answered April 7th 2010 by Peter Lum
    permalink
    0 Comments
  • Not sure this is related, but I'm also not able to run KS with 1.2. I see these errors:

    *** Unable to locate valid config! Falling back to auto-detection...
    *** Unable to locate PAC! Falling back to direct...
    *** Unable to locate valid config! Falling back to auto-detection...
    *** Unable to locate PAC! Falling back to direct...
    

    The SDK and Screen just sit at "Loading…".

    Other apps where I've specified the sdk work just fine.

    — answered April 7th 2010 by Dan Trevino
    permalink
    0 Comments
  • @Dan when you see Loading Loading it's usually a tools version problem or a path problem.

    What does the very first part of your log look like at Trace level?

    — answered April 7th 2010 by Don Thorp
    permalink
    0 Comments
  • Please see above ^

    — answered April 7th 2010 by Ben Babics
    permalink
    0 Comments
  • Hello,

    Please refer to my pastie.

    Again, any help is much appreciated.

    Regards,
    Ben

    — answered April 7th 2010 by Ben Babics
    permalink
    0 Comments
  • Ben, thanks for the pastie. Here is the clue

    [DEBUG] /Users/bbabics/Documents/android-sdk-mac_86/tools/adb -e devices
    [TRACE] wait_for_device returned: List of devices attached
    [TRACE] emulator-5560  offline
    

    Basically it can detect that the emulator is there, but it is unable to communicate with it.

    Try the following

    adb kill-server && adb start-server && adb devices
    

    from the command line. If it lists your emulator w/ it being offline then try and launch again. You don't need to stop Developer or the Emulator when you try this. If it doesn't work then.

    1) Kill the emualator
    2) Try to restart the adb server using the command above
    3) Launch the app again.

    — answered April 7th 2010 by Don Thorp
    permalink
    0 Comments
  • Don- Do I enter this in /Documents/[my-android-sdk-dir]/tools ? Apology in advance for the silly question. :)

    — answered April 7th 2010 by Ben Babics
    permalink
    0 Comments
  • Don- Do I enter this in /Documents/[my-android-sdk-dir]/tools ? Apology in advance for the silly question. :)

    — answered April 7th 2010 by Ben Babics
    permalink
    0 Comments
  • Not a problem. If the adk is in your path, than anywhere. If not then you'll want to make a small change and to be able to execute it from there.

    ./adb kill-server && ./adb start-server && ./adb devices
    
    — answered April 7th 2010 by Don Thorp
    permalink
    0 Comments
  • Don,

    I've tried using the command and re-launching the app to no avail. :(

    BTW- this time I used 1.6.

    I've included pasties of both the Command Line and the Log.

    Thanks for your help.

    — answered April 7th 2010 by Ben Babics
    permalink
    0 Comments
  • Oh Snap, it worked! I didn't realize it had to be APIs 1.6 and not just 1.6. Thanks for your help, guys. :)

    — answered April 7th 2010 by Ben Babics
    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.