Titanium Community Questions & Answer Archive

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

Problems with the Android Emulator (doesn't start up)

Hello there.

I wanted to try out the Hello World sample from the introduction but it seems it doesn't work.

I get this message:
[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again

Trace:
[INFO] Launching Android emulator…one moment
[DEBUG] From: G:\Program Files\android-sdk-windows\tools\emulator.exe
[DEBUG] SDCard: C:\Users\Lukas.titanium\android2.sdcard
[DEBUG] AVD ID: 11
[DEBUG] AVD Skin: WVGA854
[DEBUG] SDK: G:\Program Files\android-sdk-windows
[DEBUG] G:\Program Files\android-sdk-windows\tools\adb.exe start-server
[INFO] Creating new Android Virtual Device (11 WVGA854)
[TRACE] Traceback (most recent call last):
[TRACE] File "C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\builder.py", line 991, in <module>
[TRACE] s.run_emulator(avd_id,avd_skin)
[TRACE] File "C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\builder.py", line 253, in run_emulator
[TRACE] avd_name = self.create_avd(avd_id,avd_skin)
[TRACE] File "C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\builder.py", line 222, in create_avd
[TRACE] inifilec = open(inifile,'r').read()
[TRACE] IOError: [Errno 2] No such file or directory: 'C:\Users\Lukas\.android\avd\titanium_11_WVGA854.avd\config.ini'
[INFO] Building Hello World for Android … one moment
[DEBUG] G:\Program Files\android-sdk-windows\tools\adb.exe start-server
[DEBUG] Waiting for device to be ready …
[TRACE] adb devices returned 0 devices/emulators
[TRACE] adb devices returned 0 devices/emulators
[TRACE] adb devices returned 0 devices/emulators
[TRACE] adb devices returned 0 devices/emulators
[TRACE] adb devices returned 0 devices/emulators
[TRACE] adb devices returned 0 devices/emulators
[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again

(Sorry, I can't seem to figure out how to format this properly. :/ )

Someone able to help me? Pretty please? :)

— asked September 24th 2010 by Lukas
  • android
  • emulator
  • error
0 Comments

1 Answer

  • Start the android Sdk Manager. In Virtual Devices you should find the one that Titanium uses.

    Then , press the button start. Wait while emulator loads. Now , go back to the Titanium Developer. Go to Test &amp; Package , and press Launch.

    It should work. So , the main problem is that Titanium has low timeout , and it doesn't want to wait emulator to start. Emulator is so slow , so it needs some time. That is why you should start the emulator from SDK Manager.

    — answered September 24th 2010 by Filip Dimitrovski
    permalink
    2 Comments
    • Thanks for the quick reply!

      I checked the SDK Manager. I got five Virtual devices listed there but no matter which one I try to start, I always get the following error:
      emulator: ERROR: unknown virtual device name: 'titanium_8_WVGA854'
      emulator: could not find virtual device named 'titanium_8_WVGA854'

      (referring to the virtual device I try to launch)

      — commented September 24th 2010 by Lukas
    • I solved the problem:

      The cause was that Win 7 is installed on C: so the user files are usually in C:\Users\Lukas .
      Thing is I moved my user files to G: . Android was looking for the .android folder on the wrong partition.

      To fix it, I had to set an environment variable for ANDROID_SDK_HOME to G:\Users\Lukas .

      I found the problem thanks to this post here (german):
      http://www.go-android.de/forum/developer-ecke/eclipse-emulator-error-unknown-virtual-device-name-%27my_avd%27/

      — commented September 25th 2010 by Lukas
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.