Titanium Community Questions & Answer Archive

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

Kitchen Sink app Emulator not showing

OK, so like a lot of people, I'm having trouble getting the Android Emulator to show for the Kitchen Sink Application. First problem was due to a space in the file path to the Android SDK - thanks to all the various people that have posted about it.

So I moved the SDK to a path without any spaces and got the next step down the path. Now I have this problem:

[DEBUG] C:\android-sdk\tools\emulator.exe -avd titanium_3_HVGA -port 5560 -sdcard C:\Users\Web03.titanium\android2.sdcard -logcat ':d ' -no-boot-anim -partition-size 128
invalid command-line parameter: *'.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information
[DEBUG] signal caught: 3

When I try to build the app, this appears, disappears and then I end up with the usual 0 devices found etc. and then timing out.

Any ideas would be most welcome!

— asked July 7th 2011 by Simon Chubb
  • android
  • kitchensink
4 Comments
  • Is your AVD already running when you try to build and run your app??

    — commented July 7th 2011 by Anthony Decena
  • Hi Anthony - it doesn't matter, I've tried both. It can either seen under the Android SDK Manager/Virtual devices and I've also tried it having deleted that virtual devices and killed the adb process

    — commented July 7th 2011 by Simon Chubb
  • I also happens. I'm using Titanium Studio on windows7.
    Perhaps, the problem is that the spaces on the value of logcat.
    But I don't know how to change this value.

    — commented July 9th 2011 by takahiro yamakoshi
  • I'm having this issue too.

    — commented July 12th 2011 by Victor Feinman

4 Answers

  • I guess the previous answer was working for Titanium developper (old software). With Titanium Studio , there is no path like : C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\android\builder.py

    COuld you tell me where I could change the android builder command line in Titanium studio ?

    — answered July 17th 2011 by Florent Rtitanium
    permalink
    0 Comments
  • Finally resolved this issue. Go to file:
    C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\android\builder.py
    Open file and search for logcat
    comment out (#) the switch and the parameter to look like below.

            # start the emulator
            emulator_cmd = [
                self.sdk.get_emulator(),
                '-avd',
                avd_name,
                '-port',
                '5560',
                '-sdcard',
                self.sdcard,
                #'-logcat',
                #"'*:d *'",
                '-no-boot-anim',
                '-partition-size',
                '128' # in between nexusone and droid
            ]
    
    — answered July 13th 2011 by Victor Feinman
    permalink
    1 Comment
    • OK… I was a little late to the game. instead of commenting out those lines, you need to replace the single quotes with escaped double quotes.

      so it should look like this.

      # start the emulator
              emulator_cmd = [
                  self.sdk.get_emulator(),
                  '-avd',
                  avd_name,
                  '-port',
                  '5560',
                  '-sdcard',
                  self.sdcard,
                  '-logcat',
                  "\"*:d *\"",
                  '-no-boot-anim',
                  '-partition-size',
                  '128' # in between nexusone and droid
              ]
      

      — commented July 13th 2011 by Victor Feinman
  • Thanks a lot for that Victor, that at least gets the emulator up and running. I now have the next problem. Now what happens is that the emulator appears fine and Android loads on the phone. Titanium builds the app, starts installing the app on the emulator and then throws up this error:

    [INFO] Installing application on device
    [DEBUG] C:\android-sdk\platform-tools\adb.exe -e install -r "C:\Users\Web03\Documents\Titanium Studio Workspace\appcelerator-KitchenSink-1.7.0\appcelerator-KitchenSink-c094fc2\build\android\bin\app.apk"
    [ERROR] Failed installing com.appcelerator.titanium:     pkg: /data/local/tmp/app.apk
    Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
    

    Any ideas?

    — answered July 13th 2011 by Simon Chubb
    permalink
    1 Comment
    • Yes, this looks a lot like like this post: KitchenSink on Android: Mission Impossible!

      Basically your AVD (Android Vertual Device) is loading the wrong API for your app (I believe it needs to be Google API 8). So you can modify this in your android sdk manager for the AVD you are using or just follow the post above.

      — commented July 13th 2011 by Victor Feinman
  • Pl try wid this URL.. C:\Users\Windows USER ID\AppData\Roaming\Titanium\mobilesdk\win32\2.0.1.GA2\android

    — answered April 19th 2012 by Hemal Monani
    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.