Compiler (IOError - No such file or directory) Error Launching Android Emulator

You must Login before you can answer or comment on any questions.

I cannot for the life of me figure this out. This is a new Titanium Mobile setup on a Win7 64-bit Home PC. Yes I went through these setup instructions including using 32-bit Java/Python, editing the PATHs, and deleting the AVDs:

I get this when I click on Launch:

"Error in compiler. < type 'exceptions.IOError' >, [Errno 2] No such file or directory" and the Android emulator never launches.

Here's the full trace (you'll have to scroll right):

[INFO] Launching Android moment
[DEBUG] From: C:\Program Files (x86)\Android\android-sdk-windows\tools\emulator.exe
[DEBUG] SDCard: C:\Users\torimot\.titanium\android2.sdcard
[DEBUG] SDK: C:\Program Files (x86)\Android\android-sdk-windows
[DEBUG] "C:\Program Files (x86)\Android\android-sdk-windows\platform-tools\adb.exe" start-server
[INFO] Creating new Android Virtual Device (4 HVGA)
[ERROR] Error in compiler. <type 'exceptions.IOError'>, [Errno 2] No such file or directory: 'C:\\Users\\torimot\\.android\\avd\\titanium_4_HVGA.avd\\config.ini'; Traceback (most recent call last):    File "C:\ProgramData\Titanium\mobilesdk\win32\continuous-1.6.0\android\", line 1585, in <module> s.run_emulator(avd_id,avd_skin)  File "C:\ProgramData\Titanium\mobilesdk\win32\continuous-1.6.0\android\", line 337, in run_emulator   avd_name = self.create_avd(avd_id,avd_skin)     File "C:\ProgramData\Titanium\mobilesdk\win32\continuous-1.6.0\android\", line 307, in create_avd     inifilec = open(inifile,'r').read()    IOError: [Errno 2] No such file or directory: 'C:\\Users\\torimot\\.android\\avd\\titanium_4_HVGA.avd\\config.ini'
[INFO] Building Testy for Android ... one moment
[DEBUG] "C:\Program Files (x86)\Android\android-sdk-windows\platform-tools\adb.exe" start-server
[INFO] Titanium SDK version: 1.6.0 (01/21/11 03:49 20335d8...)
[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
I've searched the Q&A and cannot find a solution to this - even though it seems similar questions are being asked.

Any ideas? helP!

3 Answers

Nevermind! Just needed to read into the details...

I had moved my "Profile" location... somehow Titanium (or the Android SDK) has my user profile location hard-coded! (This should be fixed IMHO)

It would "normally" be C:\Users\<username> but I had moved it to a different location... and Titanium/AndroidSDK was still looking in the "normal Windows-defined" location...

fixed it with mklink by making a directory symbolic link :-)

— answered 3 years ago by Takahito Torimoto
answer permalink
  • and how exactly did you do that? i tried

    C:\ > cd C:\Users\<myuser> C:\Users\<myuser> > mklink mydocs D:\<myfolder


    — commented 3 years ago by Marcos Accioly

  • ok... i've managed it doing

    C:\Users\<myuser> > mklink .android D:\<myfolder>\.android

    — commented 3 years ago by Marcos Accioly

  • I am also curious of how to change profile location. Is there some ini-file I need to edit? Can't proceed without this information. Thanks in advance.

    — commented 3 years ago by Thorvaldur S


Check that your %USERPROFILE% environment variable is set to the new location of your user profile.

I tried everything that was suggested - even reinstalling both Android SDK and Titanium. What eventually fixed it was deleting the .titanium and .android directories ... at least deleting one of them fixed it - don't know which.

Your Answer

Think you can help? Login to answer this question!