Android Launch!
[2013-06-17 15:38:53 - Numberconverter] adb is running normally.
[2013-06-17 15:38:53 - Numberconverter] Performing com.example.channu.Numbersystem activity launch
[2013-06-17 15:39:00 - Numberconverter] Launching a new emulator with Virtual Device 'AMMA'
[2013-06-17 15:39:05 - Numberconverter] New emulator found: emulator-5554
[2013-06-17 15:39:05 - Numberconverter] Waiting for HOME ('android.process.acore') to be launched...
Nothing is wrong.
Waiting for HOME ('android.process.acore') to be launched...
Means that it is actually waiting for the OS to be loaded on the emulator. This usually takes a few minutes depending upon the configuration of the system you are using.
Just wait for a few minutes and you would be able to see the usual Android OS loaded on the emulator.
The usual console output when you launch an app on a new emulator is something like:
[2013-06-17 16:06:52 - FirstRun] New emulator found: emulator-5554
[2013-06-17 16:06:52 - FirstRun] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-17 16:08:00 - FirstRun] HOME is up on device 'emulator-5554'
[2013-06-17 16:08:00 - FirstRun] Uploading FirstRun.apk onto device 'emulator-5554'
[2013-06-17 16:08:01 - FirstRun] Installing FirstRun.apk...
[2013-06-17 16:08:30 - FirstRun] Success!
[2013-06-17 16:08:30 - FirstRun] Starting activity dev.swm.firstrun.MainActivity on device emulator-5554
[2013-06-17 16:08:32 - FirstRun] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=dev.swm.firstrun/.MainActivity }
you can, wait for few seconds and then right click on the project and click run as Android application once again.
also, The only thing that works for me is the combination of three other good answers:
1- Project -> Clean
2- Delete all the AVDs and create new ones
3- If an attempt to run still hangs too long on 'Waiting for HOME' (over two minutes) or the emulator keeps rebooting every minute or so, try Run as Android App several times, choosing the same existing emulator instance (I always choose runs manually).
It's odd that no one has a clue why this problem comes up, what causes it or what is going on internally. The only clue I can supply is that DDMS shows a few lines like "Class not found for preloading: libcore.base.CollectionUtils" during the 'Waiting for HOME' pause.
if not try doing that and see if you can start & see if everything
works.
1) try using Emulator command
2) in Eclipse, Window->Adnroid SDK & AVD manager ->Virtual Devices,
then select the AVD, press Start button
After you see the starting as shown above by swayam's answer in Eclipse "Console", "charging" screen appears, but then I pressed the "Menu" button on the right side and my program displayed and functions correctly. Just a newbie trying to help.
It's a memory Problem. Increase the ammount of RAM, I had the same problem and increasing the RAM worked.
Best of luck
I set higher ram 756MB and then clicked on use host GPU and it did work after that. Win8 and used Nexus5 emulator API 19.
Create new Avd of the same Api you using and try it will work
I used to have the same problem and managed to solve it by disabling Hyper-V (provided that you are running a Windows machine).
To do that, go to Control Panel -> Add/Remove Programs -> Turn Windows Features on or off -> Uncheck Hyper-V
There is one thing though: the Hyper-V feature is not available in Home versions of Windows. Also disabling it prevents you from using Windows Phone emulators, so keep that in mind.
Had the same problem. Even the side buttons were not appearing. I increased the ram from 512 to 750mb, and it worked like a charm.
Related
My AVD was working before and now suddenly it doesn't load, gives me black screen and gives me this error:
[2014-10-21 13:36:55 - l] adb is running normally.
[2014-10-21 13:36:55 - l] Performing com.k.l.MainActivity activity launch
[2014-10-21 13:36:56 - l] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_3_4_WQVGA'
[2014-10-21 13:36:56 - l] Launching a new emulator with Virtual Device 'AVD_for_3_4_WQVGA'
[2014-10-21 13:43:03 - l] New emulator found: emulator-5554
[2014-10-21 13:43:03 - l] Waiting for HOME ('android.process.acore') to be launched...
[2014-10-21 13:43:05 - l] emulator-5554 disconnected! Cancelling 'com.k.l.MainActivity activity launch'!
I removed it and created a new one. Selected option 'Wipe User Data'. My Target is Android 3.2 and ADV Target also says Android 3.2. I restarted Eclipse, still the same error. It also gave me error that another instance of avd might be running, but I have nothing else running. What am I doing wrong? Thanks!
Whenever you face that emulator is disconnected problem, do the following.
1) Restart the adb , eigther from command prompt or if you are using windows: go to task manager and select --> Processes tab and select adb.exe and click on end process. It will restart the adb and the connection between the eclipse and Emulator will be established.
Note: There are so many way to restart the adb, but above mentioned is one way in windows.
2) You can also increase the disconnection time for the emulator.
In Eclipse--> Go to WINDOW-->Prefrences-->android-->DDMS>increase the timeout value. Increseit to 10000 or more.
Note: You dont have to recreate a new AVD or restart the AVD if you do the above things.
This question has been asked here multiple times but nothing works for me. I have installed Android SDK on Windows 7 and trying to run HelloWorld project on the emulator. Unfortunately it never launches and just always showing flashing ANDROID label. The console says:
Waiting for HOME ('android.process.acore') to be launched...
As suggested here i run my project as Android application once again and yes, things change, now the console happily tells me:
[2013-07-27 22:53:36 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
[2013-07-27 22:53:37 - HelloWorld] Installing HelloWorld.apk...
[2013-07-27 22:53:55 - HelloWorld] Success!
[2013-07-27 22:53:56 - HelloWorld] Starting activity com.example.helloworld.MainActivity on device emulator-5554
but the emulator remains unchanged, just flashing with ANDROID. Can anyone give an advice?
Increase ram for the virtual device and try to select a old device with small screen to emulate , btw some times the splash screen may take up to a minute to load depending in your computer
Consiter using this very fast alternative:
genymotion
You can launch from eclipse and android studio, it has great performance.
I have been working on fixing this for two days to no eval. Any Help would be much appreciated.
I have the following installed:
Eclipse
android-sdk-macosx
Android SDK Tools
Android 2.2 API 8
Android 2.3.3 API 10
I have a phonegap Project setup. Click "Run" -> "Run as" -> "Android Application"
In the console tap I see this:
[2011-12-14 10:47:38 - Foanar] ------------------------------
[2011-12-14 10:47:38 - Foanar] Android Launch!
[2011-12-14 10:47:38 - Foanar] adb is running normally.
[2011-12-14 10:47:38 - Foanar] Performing com.phonegap.foanar.App activity launch
[2011-12-14 10:47:38 - Foanar] Automatic Target Mode: launching new emulator with compatible
AVD '3DEVO'
[2011-12-14 10:47:38 - Foanar] Launching a new emulator with Virtual Device '3DEVO'
[2011-12-14 10:47:40 - Emulator] 2011-12-14 10:47:40.256 emulator-arm[3278:80b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2011-12-14 10:47:40 - Emulator] emulator: WARNING: Unable to create sensors port: Connection refused
[2011-12-14 10:47:40 - Foanar] New emulator found: emulator-5554
[2011-12-14 10:47:40 - Foanar] Waiting for HOME ('android.process.acore') to be launched...
[2011-12-14 10:48:04 - Foanar] HOME is up on device 'emulator-5554'
[2011-12-14 10:48:04 - Foanar] Uploading Foanar.apk onto device 'emulator-5554'
[2011-12-14 10:48:05 - Foanar] Installing Foanar.apk...
The AVD "3DEVO" Launches but never installs the Foanar.apk. I never get any errors in LogCat or Console. Eclipse seems to hang here and go no further. I suspect it maybe has something to do with this line:
[2011-12-14 10:47:40 - Emulator] emulator: WARNING: Unable to create sensors port: Connection refused
I have been able to install the app via terminal using:
adb install /CapitalOnline/android/Foanar/bin/Foanar.apk
I would like to get Eclipse back up and working as terminal is ok but Eclipse is more convenient for testing builds directly from Eclipse. I used to be able to run this all the time. The only change to my machine outside of Eclipse that may or may not have anything to do with this... I installed AppMobi XDK and AppMobiPhoneGap XDK though my Chrome browser which creates its own dev environment in my user directory. Is it possible that in some way ports are crossing and refusing connections?
Thanks to anyone willing to help figure this out!
Once I came across this problem too. I don't remember exactly what I did to resolve it. I have had 2 emulator-related problems in that period and I found solutions for both of them, but now I can't remember which solution was for which problem :) So I'll suggest both methods.
Try cleaning the user data on your emulator. To do so, open your avd location (for me it was "C:\Users\UserName.android\avd") find your emulator (I guess it's 3DEVO.avd) and delete the files called "userdata.img" and "userdata-qemu.img".
While your program is running and stuck, open your Task Manager, go to processes and kill adb. Go back to Eclipse and run again. If there's an error about adb not launched, quit Eclipse and launch again.
Hope this will help.
killing adb from activity monitor fixed this for me.
if you have the device view open (windows > show views > other... > android > devices), you can choose downward arrow > reset adb
I have been having issues running my first android app. Yesterday, i came close to running it but my happiness was dashed when i encountered this error:
emulator-arm.exe has stopped working
What do i do? I want to run this 'Hello World'
My Console Display:
[2011-07-28 10:46:52 - HelloAndroid] Android Launch!
[2011-07-28 10:46:52 - HelloAndroid] adb is running normally.
[2011-07-28 10:46:52 - HelloAndroid] Performing com.bestvalue.hello.HelloAndroid activity launch
[2011-07-28 10:46:52 - HelloAndroid] Automatic Target Mode: Preferred AVD 'my_avd' is not available. Launching new emulator.
[2011-07-28 10:46:52 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-07-28 10:47:13 - Emulator] emulator: emulator window was out of view and was recentred
[2011-07-28 10:47:13 - Emulator]
[2011-07-28 10:47:14 - HelloAndroid] New emulator found: emulator-5554
[2011-07-28 10:47:14 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-28 10:47:28 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.bestvalue.hello.HelloAndroid activity launch'!
Change the resolution of the device and it should work. It didn't work for me when the resolution was 1280X800. I changed it to 800X600 and it worked fine.
After many attempts to fix, I found the following most helpful: Android: failed to allocate memory
Running the emulator with 512mb of ram or less seems to be the only solution so far for me. Thanks
Here's how to fix it and keep your desired amount of RAM:
Go into the AVD folder (example: C:\Users\username\.android\avd\phone.avd)
Open the "config.ini" file in Wordpad.
Modify the 'partition' and 'ram' lines to end in "MB" (See below for the proper syntax changes)
ORIGINAL: disk.dataPartition.size=512M
MODIFIED: disk.dataPartition.size=512MB
ORIGINAL: hw.ramSize=1024
MODIFIED: hw.ramSize=1024MB
Save the file, and then run the emulator again (e.g. "emulator.exe -avd phone"). You must repeat this process for each of your AVDs.
Might be old question but try executing directly from command line, assuming you are in android-sdk\toolsfolder run your created emulator by calling emulator-arm #youremulatorname
After some minutes searching Google and eventually Stackoverflow I finally came across a fix. Only way for reliably generate the crash during my experimentation was changing RAM size to 128 and in fact, many crashes depend on 2 problem:
PC Ram is less or equal to one defined in AVD. You must set it lower depending on your hardware RAM.
Also, some graphic and OpenGL issues found that can be fixed by changing default display to HVGA or setting a lower resolution in AVD.
Good luck!
emulator-arm.exe is not working due dual graphic card. select the basic graphical card not high performance one and is going to work. I have nvidia 555M and as bases Intel. Using intel the emulator starts.
i found tht using the avd manager to delete and recreate the virtual device without checking the snapshot enabled check box while creating the avd works. i found this on google group for android. although this issue hasnt been resolved, this method can be used as a workaround for this problem until this bug is fixed
Two options worked for me:
1. Changing the emulator resolution. I don't know why, but if I change it, it just works.
2. Changind the "Number of emulated web cameras" variable to 0 in AVD.
Thank you very much for the help!!
Marking "Use Host GPU" checkbox worked for me.
Finally solved this for me after trying all the options above. There is a solution at AndroidDevelopers on Google Plus.
If you want to have graphics acceleration enabled by default for this
AVD, in the Hardware section of the AVD configuration, click New,
select GPU emulation and set the value to Yes.
My case was that the skin setting somehow had been changed from WVGA800 to WVGA854 in AVD. After I switch it back, the emulator works.
Go to Window->Open Prespective->DDMS
you will see view as mention below
click on the portion i have highlighted and click on reset adb,and try to run your project again
If you don't see an emulator running, check Task Manager to see if you have an emulator-arm process already running. If there is an emulator-arm process, select it, choose "End Process", and try again.
In my case, I had to set memory RAM from 1907 (default) to 512 to get it working
Use a low resolution device, when I selected Nexus 4 it kept running smoothly with me.
Also worth checking that HAXM is installed/enabled (this fixed issue for me, without it got same error as you were reporting and it slowed my Mac to a crawl).
Just rebooting my PC worked for me.
[2011-07-22 16:33:02 - Today] ------------------------------
[2011-07-22 16:33:02 - Today] Android Launch!
[2011-07-22 16:33:02 - Today] adb is running normally.
[2011-07-22 16:33:02 - Today] Performing com.horror.android.today.myMain activity launch
[2011-07-22 16:33:02 - Today] Automatic Target Mode: launching new emulator with compatible AVD 'google09'
[2011-07-22 16:33:02 - Today] Launching a new emulator with Virtual Device 'google09'
[2011-07-22 16:33:10 - Today] New emulator found: emulator-5554
[2011-07-22 16:33:10 - Today] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-22 16:34:07 - Today] HOME is up on device 'emulator-5554'
[2011-07-22 16:34:07 - Today] Uploading Today.apk onto device 'emulator-5554'
[2011-07-22 16:35:12 - Today] Installing Today.apk...
[2011-07-22 16:35:31 - Today] Installation error: **INSTALL_FAILED_INSUFFICIENT_STORAGE**
[2011-07-22 16:35:31 - Today] Please check logcat output for more details.
[2011-07-22 16:35:32 - Today] Launch canceled!
EDIT
I solved on emulator but on device , what is the solution?
I follow this question but sometimes thats not best idea for me.
you need to increase virtual memory of emulator
How to increase virtual memory of emulator
emulator -avd "Emulator Name" -partition-size 500
after then try to install your apk
if you got any error then see conversation of this question
I've had the same problem but on my phone (not emulator) when developing.
To solve it when it happens I go into Settings->Applications->Manage Applications -> The app I'm working with
and press Force Close, after that it works. For me this error occurs every 4-5 build, but using the Force close strategy makes it bearable (I used to restart the phone).
Phone: Sony Ericsson Xperia Ray.
**Android Version: 4.0.3
Development Environment: Eclipse Ingido
An Android virtual device provides per default only 64M for the storaging Android applications. You can clean your installed application by re-starting the emulator and selecting the "Wipe user data" flag.
also you you can edit the emulation data partition size permanent through avd manager -> emulator name -> edit -> hardware -> Ideal size of data partition = "2048"
If You are Installing the application to the Emulator then Some times it happend.
I face same Problem and i have solve it by my way.
In my Problem, I have install the application in emulator that is larger as like more then 10mb. And After that, i am going to Install another Application to that emulator and got this error..
Sollution:
I have just Restart the Eclipse that will erace all unwanted Memory and will get refresh to install the new Application.
Note: Its only works for some Normal perpose. as like to get error after installing another application. . .etc. Otherwise follow CapDroid's answer.
Thanks.
Just in case it helps for others.. I resolved it by wiping the emulator, and then restart
I follow following link, which has better to solve my problem.
http://google-androidlovers.blogspot.com/2011/07/solution-android-installfailedinsuffici.html
Solution to INSTALL_FAILED_INSUFFICIENT_STORAGE error on Android
http://forum.xda-developers.com/showthread.php?t=1201156
http://groups.google.com/group/android-developers/browse_thread/thread/41852900bd603070/583943d91dc9f754?lnk=gst&q=insufficient+memory&pli=1