Timed out waiting for emulator to be ready
Is there a way to increase the timeout with Appcelerator waiting for the Android emulator to start up? Mine takes slightly longer than it should (call it Antivirus or something-or-other) and it only launches successfully every 3/4 times that I try to start it.
15 Answers
-
Hi David,
The only thing I've found to work is to run up a cmd or shell prompt and run:
./adb kill-server && ./adb start-server && ./adb devices
when I experience a problem. It tends to only occur when I have too many programs running at once ( ie am short on Memory, disk, CPU or timeslice etc )
Greg
-
Found the problem, the android tool creates the AVD in the E:\.android when it should be in C:\Documents and Settings\{user}\.android
Hope it helps
-
I can't get the android emulator to show at all. Not even with a empty testapp. Tried various android versions and screens.
Always the message "[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again"
Can't be my machine is too slow… it's a 64bits system running clean Windows 7 install with 6Gb ram and dual core P8700…
Any suggestions?
-
@Albert, you have the platform 4 (API 1.6) installed installed? It is needed for building. You might also have a stuck
adb
process or it's not responding correctly which is a common occurrence for theadb
server.What version of the Android tooling are you using and how recently did you install the Android tools and platforms. If it's been in the last couple of weeks. You may need to get a current CI build to handle the name change that Google did.
Our continuous integration (CI) system provides updated builds approximately 30 minutes or less after a change has been committed to github. Please refer to our Continuous Builds for Download guide for obtaining one for your platform.
-
@Gregor, the emulator starts at all? Or your app launches on an already running emulator? Which case are you having?
-
I am having the same issue… Has anyone found a solution? This seems to be a ongoing issue.
-
I had the same problem, but solution was not listed here : the problem came from my user home dir which had accent (i'm french).. Android sdk doesn't like that as he's using some core file access APIs that do not support extended charsets. Use only core ascii chars to spell you windows user name.
-
I think the SDKs are in the right place and Titanium saw them but cannot load and run them properly is'nt it about some more technical problem about the Tit IDE ?
-
[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again…………..Im fed up with this problem……….please help i tried everthing stated above but of no use…..
-
I get this
[INFO] logfile = C:\Users\Ivica\My Documents\Titanium Studio Workspace\Kitchen Sink\build.log
[INFO] Launching Android emulator…one moment
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\Ivica\AppData\Roaming\Titanium\mobilesdk\win32\2.0.2.GA\android\builder.py", line 2112, in <module>
[ERROR] s.run_emulator(avd_id, avd_skin, avd_name, add_args)
[ERROR] File "C:\Users\Ivica\AppData\Roaming\Titanium\mobilesdk\win32\2.0.2.GA\android\builder.py", line 418, in run_emulator
[ERROR] debug("From: " + self.sdk.get_emulator())
[ERROR] TypeError: cannot concatenate 'str' and 'NoneType' objectsAnd then this
[INFO] logfile = C:\Users\Ivica\My Documents\Titanium Studio Workspace\Kitchen Sink\build.log
[INFO] Building KitchenSink for Android … one moment
[INFO] plugin=C:\Users\Ivica\AppData\Roaming\Titanium\plugins\ti.log\0.1\plugin.py
[INFO] Detected compiler plugin: ti.log/0.1
[INFO] Compiler plugin loaded and working for android
[INFO] Titanium SDK version: 2.0.2 (05/30/12 10:21 2ff31a3)
[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try againPLEASE HELP ! ! !
-
Im also getting Timeout with Titanium SDK version: 2.1.1
I am new to TitaniumError:
[INFO] logfile = C:\Users\push\Documents\Titanium_Studio_Workspace\01\build.log [INFO] Launching Android emulator...one moment [ERROR] 'xcopy' is not recognized as an internal or external command, [ERROR] operable program or batch file. [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "C:\Users\push\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\builder.py", line 2229, in <module> [ERROR] s.run_emulator(avd_id, avd_skin, avd_name, avd_abi, add_args) [ERROR] File "C:\Users\push\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\builder.py", line 485, in run_emulator [ERROR] avd_name = self.create_avd(avd_id, avd_skin, avd_abi) [ERROR] File "C:\Users\push\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\builder.py", line 408, in create_avd [ERROR] available_avds = avd.get_avds(self.sdk) [ERROR] File "C:\Users\push\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\avd.py", line 23, in get_avds [ERROR] for line in run.run([sdk.get_android(),'list','target'],debug=False).split("\n"): [ERROR] AttributeError: 'NoneType' object has no attribute 'split'
[INFO] logfile = C:\Users\push\Documents\Titanium_Studio_Workspace\01\build.log [INFO] Building 03-01 Understanding Windows and Views for Android ... one moment [INFO] Titanium SDK version: 2.1.1 (07/27/12 14:01 0fd84a2) [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again
Also tried to kill adb.exe still no results
- Windows 7 x64
- Titanium SDK version: 2.1.1
- android 2.3 sdk manager 20.0.3
- java jdk 1.6
Please help…
-
There is an eclipse setting not exposed by the TitaniumStudio that will do this for you. In your workspace create a file: .metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
This file needs one line:
com.android.ide.eclipse.ddms.timeOut=150000
If you need more than 150000ms increase that value.
-
This worked for me (Mac OS X 10.8.5, Titanium SDK 3.1.3.GA):
Let the emulator starts and unlock it.
Open the Terminal (Mac):
cd [android-sdk-location]/platform-tools ./adb kill-server ./adb start-server
If you use Windows go to the Command Prompt:
cd [android-sdk-location]\platform-tools adb kill-server adb start-server
Clean and build the project (Win and Mac).
-
If you are still not able to find a work around , try following :
Open Terminal :
- cd path to your titanium project ( eg : /Users/namespace/Documents/Titanium_Studio_Workspace/Test )
- type
titanium build --platform android --build-only
- type
adb install -r /Users/namespace/Documents/Titanium_Studio_Workspace/Test/build/android/bin/app.apk
-
Same problem. Running Ti.Studio 3.2.3 w SDK 3.1.3 on W7. Increased ADB timeout on Eclipse but didn't help.
Also killed/started server. Here's build log. Why is it looking for emulator on cable ?
[DEBUG] C:\Users\John\Documents\Titanium Studio Workspace II\mobilesdk\win32\3.1.3.GA\android\builder.py install UMe C:\Users\John\AppData\Local\Android\android-sdk C:\Users\John\Documents\Titanium Studio Workspace\CQUOT com.cameronia.cquot 1
[INFO] Titanium SDK version: 3.1.3 (09/18/13 12:00 222f4d1)
[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
[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 device to be ready, you may try reconnecting the USB cable