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? :)
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 toTest & Package
, and pressLaunch
.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.