Emulator Error: hint use '@foo' to launch a virtual device named 'foo'

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

I'm trying to launch the Titanium Studio emulator, and I get the error below. At this site (http://cimientosprevios.com/?r=true&p=11), it asks us to change the Android SDK directory from 'C:\Program Files\Android\android-sdk' to 'C:\PROGRA~1\Android\android-sdk,' but it does not work for me.

Any suggestions?

[INFO] logfile = C:\Developer\Mobile\build.log
[DEBUG] C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\android\builder.py emulator Mobile C:\Program Files\Android\android-sdk C:\Developer\Mobile com.step.arlogo 4 HVGA
[TRACE] app property, ti.android.debug : false
[TRACE] app property, ti.android.google.map.api.key.development : 0ZnKXkWA2dIAu2EM-OV4ZD2lJY3sEWE5TSgjJNg
[TRACE] app property, ti.android.google.map.api.key.production : GET_ME_FROM_GOOGLE
[INFO] Launching Android emulator...one moment
[DEBUG] From: C:\Program Files\Android\android-sdk\tools\emulator.exe
[DEBUG] SDCard: C:\Users\LLPadmin\.titanium\android2.sdcard
[DEBUG] AVD ID: 4
[DEBUG] AVD Skin: HVGA
[DEBUG] SDK: C:\Program Files\Android\android-sdk
[DEBUG] "C:\Program Files\Android\android-sdk\platform-tools\adb.exe" start-server
[DEBUG] C:\Program Files\Android\android-sdk\tools\emulator.exe -avd titanium_4_HVGA -port 5560 -sdcard C:\Users\LLPadmin\.titanium\android2.sdcard -logcat '*:d *' -no-boot-anim -partition-size 128
invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information
[DEBUG] signal caught: 3
[DEBUG] calling emulator kill on 844
ERROR: The process "844" not found.

— asked 3 years ago by Hanna Zhu
0 Comments

8 Answers

Hanna:

Maybe if you have installed the SDK into "C:\Program Files(x86)\Android\android-sdk" instead of "C:\Program Files\Android\android-sdk", 'C:\PROGRA~1\Android\android-sdk' will no longer work. Instead, use : 'C:\PROGRA~2\Android\android-sdk'. Hope this helps!

— answered 3 years ago by Hall Nation
answer permalink
2 Comments
  • PROGRA~2 is, I think, for Windows 64-bit machines. I tried this before on my PC, which is 32-bit, and it doesn't recognize it. Thanks, however.

    — commented 3 years ago by Hanna Zhu

  • PROGRA~2 is also for Windows (x86).

    — commented 3 years ago by Hanna Zhu

Problem was solved.

First, I uninstalled the SDK's, then reinstalled them directly to my C:\drive.

The second part involved a bug in the code file: C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\android\builder.py. I found the answer here: Titanium Emulator Launch error.

Hanna: Did you install to C:\Program Files(x86)\Android\android-sdk ? and then fix builder.py

Hi John,

Titanium seems to have two problems: one is that it doesn't like having spaces in the directory to its Android SDK's, such as the space in "Program Files." This led me to uninstall and reinstall the Android SDK's to the C drive: C:\Android\android-sdk.

After I did that, I discovered that there was a bug in the builder.py code, so I fixed that.

Maybe it was not necessary to reinstall the SDK's. Typing "C:\PROGRA~2\Android\android-sdk" when setting up the preferences of Titanium would probably work. PROGRA~2 seems to be some sort of short hand for Program Files, so Windows should understand it. I reinstalled mine because I didn't realize builder.py had a problem also, so I assumed that PROGRA~ was not working either.

— answered 3 years ago by Hanna Zhu
answer permalink
5 Comments
  • Hanna: Thanks so much for your help; got Android running. Still can't load my app getting; sound slike an sd problem, right ?

    <<[DEBUG] C:\PROGRA~2\Android\android-sdk\tools\emulator.exe -avd titanium_4_HVGA -port 5560 -sdcard C:\Users\John.titanium\android2.sdcard -logcat "*:d *" -no-boot-anim -partition-size 128 [DEBUG] signal caught: 3 [DEBUG] calling emulator kill >>

    — commented 3 years ago by John Mohan

  • Hi John,

    That error seems to be referring to the builder.py problem. I think it should be resolved through this link: http://developer.appcelerator.com/question/122318/cannot-launch-android-emulator-from-titanium-after-updated-to-android-sdk-version-12#212678.

    — commented 3 years ago by Hanna Zhu

  • Yes, that is where the break is from; I had made the builder patch and still got this error. I re-tried the patch, cut & pasted it, and still got the error ?

    — commented 3 years ago by John Mohan

  • Show 2 more comments

hello everyone I am facing the same problem with Android when executing the emulator, and i found a solution right now: plz do these steps: 1 unistall the SDK that u have already installed 2 create a folder in disc C 3 name it like ANdroid 4 open it and create inside it a new folder, for me i named it PROGRA~1 5 exute the installation of ur SDK to be installed in the folder created PROGRA~1

THANK YOU :) and enjoy it

In eclipse Go to Windows > Show View > Package Explorer. U will see your project. Right click on project : Run As > Run Configurations > in Lunch action select on middle middle redio box like Lanch : <com.android.FirstProject> -* Note : here select your activity.*- now go to second tab on Target select Automatic : Select Avd : remove text from Additional Emulator Command Linne options . ... and run

Hello I just run the AVD manually, after i realized that the command line cannot resolve the path to the program that runs the avd. It is named emulator-arm.exe and it is located in "C:\Program Files\Android\android-sdk\tools". So just open command line console,then navigate the console in to that directory using "cd <dir>" and then type emulator-arm.exe - avd <nameoftheavd>

Your Answer

Think you can help? Login to answer this question!