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 on Windows 7 / Android - "Application Should be running"

Hello
The app builds OK, but there is no app transferred to the emulator. Can you help? here is the trace

<script src='http://pastie.org/1332705.js'></script>

— asked November 29th 2010 by Mel Bradley
  • kitchensing
  • windows 7
0 Comments

4 Answers

  • Mel

    Is the Java version you have installed Sun's or Open Java? You need Sun's 1.6 release 10 or above (but not 1.7)

    — answered November 29th 2010 by Paul Dowsett
    permalink
    1 Comment
    • I'm using Sun's JDK 1.6.0_22

      — commented November 29th 2010 by Mel Bradley
  • In the trace it looks like the .apk (the Android binary created by Titanium) is not being installed to the emulator because Titanium Developer can't attach to the emulator thread. The message that the app is installed and running is erroneous in this case. Try hitting the launch button again in Developer to retry deploying the .apk.

    If that doesn't work, I would be suspicious of permissions setup that would prevent the Titanium Developer process from communicating with the emulator process.

    — answered November 29th 2010 by Kevin Whinnery
    permalink
    1 Comment
    • Thanks. What permissions are you referring to? Where should I look?

      — commented November 29th 2010 by Mel Bradley
  • Mel

    In the project's build/android directory, there are subdirectories called bin, lib, src etc. Delete all the contents of all of them. Then try launching the app again.

    — answered November 29th 2010 by Paul Dowsett
    permalink
    1 Comment
    • Mel

      This should resolve your permissions problem.

      — commented November 29th 2010 by Paul Dowsett
  • FIXED: I was using the wrong emulator/Titanium was starting up the wrong emulator.

    If I create a new AVD manually called titanium_1_HVGA and assign it Google APIs level 4, then titanium will start up that emulator instead of creating a new instance. I could then successfully run a new HellowWorld app in that emulator.

    However, KitchenSink still wouldn't work due to an internal Java error. I fixed this by editing bulder.py and changing Xmx option to 1024m, as discussed here: http://developer.appcelerator.com/question/54651/error-compiling-kitchensink-to-android-emulator

    Thanks

    — answered November 29th 2010 by Mel Bradley
    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.