Could not start virtual device from eclipse - android

when I configured my Eclipse with ADT and SDK, I created a new android project, and then I right click the project name and select the Run As -> Android Application, but I got the error message in the console like this:
[2011-07-25 19:11:01 - Android] ------------------------------
[2011-07-25 19:11:01 - Android] Android Launch!
[2011-07-25 19:11:01 - Android] adb is running normally.
[2011-07-25 19:11:01 - Android] Performing com.android.Activity01 activity launch
[2011-07-25 19:11:01 - Android] Automatic Target Mode: launching new emulator with compatible AVD '2.1'
[2011-07-25 19:11:01 - Android] Launching a new emulator with Virtual Device '2.1'
[2011-07-25 19:11:01 - Emulator] invalid command-line parameter: by.
[2011-07-25 19:11:01 - Emulator] Hint: use '#foo' to launch a virtual device named 'foo'.
[2011-07-25 19:11:01 - Emulator] please use -help for more information
so, how can I fix this problem?

I had the same problem. I have Win 7 64b
I do 3 things.
Uninstall Android SDK from c://Program Files (x86)\ bla bla lba
Install Android SDK to c://Android/Sdk/blablaba
Reset the Eclipse path to SDK in Windows/Preference -> Andriod ->
Browse Folder for SDK...
All things start to work. I guess that critical for SDK is to be installed in the folder with spaces in the Folder name.

Related

An android virtual device that failed to load. click 'details' to see the error

I just installed the Android plugin in Eclipse. Created a new virtual device running on Android 4.0 API level 14 (Nexus S) but it wont emulate. I read on one post that I could move the android folder to another location so i did so and to no avail,it still wont emulate the android window will start and the 'ANDROID' text will load for days and days but does not go any further. (I usually just read but have never posted so forgive me for my format)
Examining the console this was the text available:
[2013-04-01 20:35:42 - Android Test] ------------------------------
[2013-04-01 20:35:42 - Android Test] Android Launch!
[2013-04-01 20:35:42 - Android Test] adb is running normally.
[2013-04-01 20:35:42 - Android Test] Performing com.theprogrammer.android.test.MainActivityMainActivity activity launch
[2013-04-01 20:35:43 - Android Test] Automatic Target Mode: launching new emulator with compatible AVD 'Phone_IceCreamSandwich'
[2013-04-01 20:35:43 - Android Test] Launching a new emulator with Virtual Device 'Phone_IceCreamSandwich'
[2013-04-01 20:35:55 - Android Test] New emulator found: emulator-5554
[2013-04-01 20:35:55 - Android Test] Waiting for HOME ('android.process.acore') to be launched...
[2013-04-01 20:37:12 - Android Test] HOME is up on device 'emulator-5554'
[2013-04-01 20:37:12 - Android Test] Uploading Android Test.apk onto device 'emulator-5554'
[2013-04-01 20:37:12 - Android Test] Installing Android Test.apk...
[2013-04-01 20:38:13 - Android Test] Success!
[2013-04-01 20:38:13 - Android Test] Failed to install Android Test.apk on device 'emulator-5554': device not found
[2013-04-01 20:38:13 - Android Test] com.android.ddmlib.InstallException: device not found
[2013-04-01 20:38:13 - Android Test] Launch canceled!
Here are the things you could do in this scenario:
Reinstall the ADT Android Eclipse Tools
Clean the Project
Try Manual Launch Mode in eclipse
Also, I've found these answers that may help you:
Question 1
Question 2
Take a look, see if it helps. Android is weird sometimes.
I found that patience is a virtue because the emulator will take time to boot up but it will eventually boot up just take note of the RAM size that u give it because it will actually take that from your physical memory.
EDIT
I would recommend using Genymotion as I have been using it ever since this error and it has worked quite fine for me. Migrating to another PC is also simple since you just move the virtual devices.

Mac Android Emulator not showing up

I have already found a solution for this problem on Windows but not for Mac. Here it is: The Android emulator is not starting, showing "invalid command-line parameter"
Emulator has worked before but now I am getting this strange error:
Log:
[2012-06-05 23:29:30 - Together Game Free] ------------------------------
[2012-06-05 23:29:30 - Together Game Free] Android Launch!
[2012-06-05 23:29:30 - Together Game Free] adb is running normally.
[2012-06-05 23:29:31 - Together Game Free] Performing com.motioncoding.togetherfree.TogetherGameActivity activity launch
[2012-06-05 23:29:31 - Together Game Free] Automatic Target Mode: launching new emulator with compatible AVD 'API4'
[2012-06-05 23:29:31 - Together Game Free] Launching a new emulator with Virtual Device 'API4'
[2012-06-05 23:29:31 - Emulator] invalid command-line parameter: emulator.
[2012-06-05 23:29:32 - Emulator] Hint: use '#foo' to launch a virtual device named 'foo'.
[2012-06-05 23:29:32 - Emulator] please use -help for more information
I reinstalled eclipse now it works again.

"Hello World" failed. Something about Android Emulator went wrong

I just began to learn android. I'm using Windows XP, eclipse indigo JavaEE and its ADT. Then I was trying out the official Hello World. I've created an AVD and paste the code. But when I run the program, problem occured during AVD initialization. Here's the log:
[2011-11-15 15:53:33 - helloworld] --------------
[2011-11-15 15:53:33 - helloworld] Android Launch!
[2011-11-15 15:53:33 - helloworld] adb is running normally.
[2011-11-15 15:53:33 - helloworld] Performing com.helloworld.HelloworldActivity activity launch
[2011-11-15 15:53:33 - helloworld] Automatic Target Mode: launching new emulator with compatible AVD 'myAVD'
[2011-11-15 15:53:33 - helloworld] Launching a new emulator with Virtual Device 'myAVD'
[2011-11-15 15:53:35 - Emulator] NAND: could not write file C:\DOCUME~1\qi\LOCALS~1\Temp\\AndroidEmulator\TMP185.tmp, No space left on device
There's plenty spaces in my C:\ and I was very confused about the No space left. And the folder is empty. The number "185" changes if I press "Run" again.
I was using Android 4.0. I've tried restarting, and changing to Android 2.2. None works. I've done this "hello world" on another machine. It worked.
Open AVD manager and Edit your Emulator at which your are working on.
Wipe data and then increase the SD Card size of your Emulator which will solve the problem.
Looks like you've run out of free disk space on volume C: (either that, or the guys who commented the question are right and it's complaining about SD card size).

Emulator Not Working in Eclipse

Hello everyone I can't seem to figure out why my emulator isn't working and I don't get the error in the console
Here is what it says in the console
[2011-08-24 16:28:59 - MePlayer] Android Launch!
[2011-08-24 16:28:59 - MePlayer] adb is running normally.
[2011-08-24 16:28:59 - MePlayer] Performing com.meplayer.afajje.MePlayer activity launch
[2011-08-24 16:28:59 - MePlayer] Automatic Target Mode: Preferred AVD 'Droid' is not available. Launching new emulator.
[2011-08-24 16:28:59 - MePlayer] Launching a new emulator with Virtual Device 'Droid'
[2011-08-24 16:29:01 - Emulator] invalid command-line parameter: Files.
[2011-08-24 16:29:01 - Emulator] Hint: use '#foo' to launch a virtual device named 'foo'.
[2011-08-24 16:29:01 - Emulator] please use -help for more information
This error occurs on Version 12/13. You SDK path contains spaces. Move it to space-less path or if it is in Program Files change the path in Window->Preferences select Android
C:\PROGRA~1\Android\android-sdk

Emulator Load error - Android

I am new to android. I am trying to develop android helloworld application as given in all tutorials.
Using Configuration: Android 3.1 for configuration.
When i try to run in eclipse i get error:
[2011-07-10 13:39:19 - HelloWorld] -----------------------------
[2011-07-10 13:39:19 - HelloWorld] Android Launch!
[2011-07-10 13:39:19 - HelloWorld] adb is running normally.
[2011-07-10 13:39:19 - HelloWorld] Performing com.hello.HelloWorldActivity activity launch
[2011-07-10 13:39:19 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-07-10 13:39:19 - HelloWorld] Launching a new emulator with Virtual Device 'my_avd'
[2011-07-10 13:39:19 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-07-10 13:39:19 - Emulator] Hint: use '#foo' to launch a virtual device named 'foo'.
[2011-07-10 13:39:19 - Emulator] please use -help for more information
This is a bug that was introduced with SDK tools r12. You can do either of two things:
Install your SDK into your C:\ root directory instead of C:\Program Files
In Eclipse, go to Window -> Preferences -> Android. If you placed your SDK in C:\Program Files, change that to C:\PROGRA~1. If you placed it in C:\Program Files (x86), change it to C:\PROGRA~2. Eclipse is going to complain, so in your command line terminal, run adb kill-server and then adb start-server. If you haven't set up your PATH variable yet, then, in the command prompt, navigate to (path to sdk)\android-sdk-windows\platform-tools, and run those two commands from there.
Your android sdk might not be configured correctly.
Did you try to run the emulator from command line?
[http://www.ceveni.com/2009/12/run-android-emulator-from-command-line.html][1]

Categories

Resources