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] Timed out waiting for emulator to be ready, you may need to close the emulator and try again

I'm trying to launch the basic "Hello World" app that you create in the intro to Titanium… I'm getting this error…

"[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again"

here's my trace statement. running win7/64, titanium 1.2.1 and have updated all my android sdk files as of today…

PLEASE HELP :)

[INFO] Launching Android emulator...one moment
[DEBUG] From: C:\android-sdk-windows\tools\emulator.exe
[DEBUG] SDCard: C:\Users\Steve\.titanium\android2.sdcard
[DEBUG] AVD ID: 4
[DEBUG] AVD Skin: WVGA854
[DEBUG] SDK: C:\android-sdk-windows
[DEBUG] C:\android-sdk-windows\tools\adb.exe start-server
[INFO] Creating new Android Virtual Device (4 WVGA854)
[TRACE] Exception in thread "main" java.lang.NullPointerException
[TRACE] at com.android.sdkmanager.Main$1.warning(Main.java:119)
[TRACE] at com.android.sdklib.SdkManager.loadAddon(SdkManager.java:452)
[TRACE] at com.android.sdklib.SdkManager.loadAddOns(SdkManager.java:387)
[TRACE] at com.android.sdklib.SdkManager.createManager(SdkManager.java:114)
[TRACE] at com.android.sdkmanager.Main.parseSdk(Main.java:191)
[TRACE] at com.android.sdkmanager.Main.run(Main.java:93)
[TRACE] at com.android.sdkmanager.Main.main(Main.java:83)
[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\\Steve\\.android\\avd\\titanium_4_WVGA854.avd\\config.ini'
[INFO] Building Hello World for Android ... one moment
[DEBUG] C:\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
— asked September 2nd 2010 by Steven Davis
0 Comments

4 Answers

  • Close the application. Delete all Android virtual devices from Android Virtual Device Manager. And then open the Android SDK Manager to allow it to update. After that you can start the application. This worked for me.

    — answered September 21st 2012 by S K
    permalink
    0 Comments
  • I am having the same problem with my 'HelloWorld' app.

    SK, can you please explain how do delete all Android Virtual Devices. As you can see by the app I'm trying to get running, I don't know much about Titanium.

    Thanks
    DJ

    — answered September 29th 2012 by D J
    permalink
    0 Comments
  • Problem solved here, on my Vista OS machine. Note that the path will be different for other Windows OS.

    I did what Diego Potapczuk suggested in the thread: Timed out waiting for emulator to be ready, why? and it's fixed my problem perfectly!! Now I don't have to kill adb.exe everytime I want to upload my new code.

    At the top of my app.js file, I created the global variable as follows:

    var ANDROID_SDK_HOME = &#39;C:\Users\myusername&#39;;

    Thnx Diego!!

    Cheers,
    DJ

    — answered September 29th 2012 by D J
    permalink
    0 Comments
  • hmmm.
    Now it's not working.

    When I posted above, I was making lots of changes to a small app that plays sound files that are linked to 6 buttons. The sound wasn't coming through, but otherwise the app was working each time I made changes (including a project clean).

    I gave up trying to understand why I was getting an error "Uncaught TypeError: Object #<Sound> has no method 'setUrl' ".
    So I tried running the standard Hello World app, but the problem with the timeout came back. Now my original sound program isn't working either.

    This is killing me!!! WTF is going on?

    Is there something wrong with the images? Or something wrong with adb?

    In regards to SDKs, at the moment I have TOOLS, API16 (which I had trouble downloading MIPS but I got a direct download from elsewhere) and API8 and all the Extras.
    I am now downloading all the other SDK files.

    I have an assignment due at Uni soon, and I think I will be lucky if I get this IDE working, let alone develope something! Not very happy to be honest! Killer IDE, yea… killed the developer!

    DJ

    — answered September 29th 2012 by D J
    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.