Hi I am new in android and started to learn
I have Windows 7 PC, with 2.33GHz Intel Core I3.
I am using Eclipse SDK
Version: 4.2.2
Build id: M20130204-1200
Android Development Toolkit
Version: 22.6.2.v201403212031-1085508
I have tried to run simple hello world program and don't know but emulator is showing just
android----- android, it's not even starting it's main windows
can anybody help me how to resolve that issue
I personally suggest you instead of use of Android Emulator use
GenyMotion or BlueStacks in both of them
for just android application development and testing Genymotion is the best best and the best
first time emulator start takes soo long, i mean first time ever, and first time in day.
however, you can check the Logcat and see what is going on,
you can view logcat (if not already appearing) by going to
Window -> Show View -> Logcat
if does not appear in the list, click other, and search for logcat.
once emulator started it will show log in logcat window.
it might be useful.
You should try the x86 version of the emulator, with HAXM enabled (if your computer supports Intel VT) it will be much faster than the ARM version.
Then, when creating a new device, choose the Intel Atom (x86) option for its CPU.
This is the guide I followed, looks like things haven't changed much since then.
You just wait..It takes a lot of time for the emulator to start..Make sure that snapshot is checked while creating the new avd and next time when you launch the avd make sure the Launch from snapshot checkbox is checked..
Android Emulators are very slow and buggy try GenyMotion it is fastest Emulator !
Every Android Developer should have.
Related
I decided to install xamarin the other day so I could start coding in c#. So far it's been an absolute nightmare getting anything to work. I downloaded the xamarin bundle that visual studio offers and now I'm trying to simply run a test app and the emulator won't work.
I've looked at every video online, & tried to read through as many forums as possible but at this point I need direct help before I throw my computer into the pool(jk)
I've downloaded android emulator & installed almost all the devices & made sure to install all the packages in the android sdk. I created a new device from the vds manager but I STILL get errors.
this is the message I get waiting for the emulator to start, I don't see the android splash either
still waiting
I got stuck on this for a while until the basic issue was I simply was not waiting long enough. Keep an eye on your Visual Studio build window, and watch all the slow messages as the come up.. it takes around 3-5 minutes on a blank project for the first time on a intel i5 with 8GB ram.... so the trick really in my case was to be patient. I think it gets faster second time round as it remembers some of the hard work it did the fist time to get it to work.
When you create an Android Emulator (this can be done in the Xamarin Android Device Manager in VS or selecting 'Create Android Emulator' in the dropdown on the Run button), there is an option named hw.gpu.mode. In my case (using Hyper-v), changing the option from auto to mesa did the trick, although there are a number of different options.
I just reseted the emulator to factory defaults and it worked.
Have you tried to edit the emulator properties and to check the "Use Host GPU Option"?
I had that issue too and that option solves the problem
I enabled Hyper-V acceleration based on microsoft documentations: https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin&pivots=windows#accelerating-with-hyper-v
Basically you need to turn on these two windows features from the control panel (Turn windows features on of off):
Hyper-V.
Windows hypervisor platform.
then from visual studio go to: Tools >> Android >> Android SDK manager >> Tools >> make sure that "Android emulator" version is 27.0.1 or higher, if not, you will find in the same screen a button below to update it.
I did this on windows 10 64-bit, with VS 2017 Community 15.9.5
June, 2022.
I know that this is kind of an old question, but I've had the same issue, which I fixed by updating the Visual Studio (2022).
I have followed following tut to install messaging-simulator.apk on my Nexus 7 emulator of adt sdk...
http://www.orhancanceylan.com/installing-and-testing-apk-files-to-the-android-emulator-on-mac/
But, after the device (virtual) is launched (which is annoyingly slow), no further action could be performed from terminal as it gets stuck or no progress is shown. (Basically, I am stuck after ./android command. Nothing can be entered in terminal after that. How do i resolve this?
If you can't type a thing in the terminal - just open a new Terminal window and type it there.
A few tips that will speed up your emulator
Make your emulator as intel x86. and check Use host GPU
Install HAXM from the sdk manager
make the settings like this:
I use mac to develop Android.
Thanks a ton to #Uriel Frankel. Yet, all those tips and tricks given by him did not work out for me due to low memory in my macbook.
So I have used Genymotion emulator(http://techapple.net/2014/05/3-best-android-emulators-for-mac-os-macbook-run-and-install-android-app-on-your-mac-os-x-macbook-airpro/) instead of default android emulator and successfully launched the app by installing it.
You can all try above solution first and if it did not work out, use Genymotion, it's cool :)
I'm new to Android software development. to install the virtrual devise on Eclipse, I followed the steps as mentioned on http://developer.android.com/ but when I launch it, it starts loading and stops there!
! it just shows me the word "android" glinting. So what should I do to make it work?
[Sorry for my bad english.]
The emulator is quite slow. If you see the Android logo, then it is booting. You just need to wait it out.
If you have an Intel processor on your development machine and are running Windows or Mac, I suggest that install HAXM and configure your emulator to use an Intel image. You will see a significant speed boost. For details, see this article.
I have some problems with my emulator in eclipse. When I create an AVD and start it, the emulator is running and showing the "Android" logo/text, but never moves on from there.
Should I set some specific settings when I create a new AVD to make it run faster?
Any suggestions will be greatly appreciated
If You have a PC/Laptop with less than 4GB RAM the emulator will take some time to start up and it will run very slow.
Additionally You can tick a box called Use Host GPU in the Emulation Options while crating a new AVD.
If you have a processor that supports VT-x, EM64T, and Execute Disable (XD) Bit functionality or in simple terms a core i processor, download intel HAXM android emulator. It is much faster then the default android emulator comes bundled.
Here is the link: Intel HAXM Android EMUALTOR
If you have issues with AVD, I'd highly encourage to try Genymotion.
You may have snapshots enabled, in which case, ensure you are selecting 'Wipe Device' in the device manager when you start it.
I would also suggest you just create a new AVD instance, and start from scratch - this doesn't take very long, and will likely be quicker than trying to debug a failing instance.
Use lower specifications for your Android Emulator other than using a host GPU as mentioned by PLG. For details refer to my answer here.
Because the emulator was really slow I installed the intel x86 emulator. I changed the settings in my emulator (ARM to intel atom). Now when I run a project it takes me to the emulator selection screen and when I select it, the project starts running, but the emulator doesn't pop up.
I tried switching the cpu back to ARM, but it still doesn't work.
When I close Android studio it asks me if I want to disconnect from the project so I'm sure it is running.
I came across a few posts that said to give the device 768 ram, but that didn't work.
Anyone knows a solution?
I was facing the exact same issue, but for me reducing the device RAM to 768 did fix it. Therefore I'd suggest continuing to decrease the RAM values and trying to launch it.
How about to use Rock speed Emulator - Genymotion?
I know it sometimes take time to launch emulator and launch app in emulator too. But it depends on your configuration of your PC and settings you have done in Eclipse or Android Studio.
For example: You may have kept "Build Automatically" ON and it sometimes slow down running time.
My current rep is not high enough yet to comment on another answer, so I am adding a new "answer" to +1 Paresh Mayani's answer to use Genymotion. I only recently discovered it and found it to be much much faster than the emulator. Instead of emulation it runs an Android rom in a VM using VirtualBox. I've found that it runs full speed on my machine and is just as fast in debug mode as normal mode, which is impressive since even my Nexus 5 struggles when connected to a debugger.
In my case also x86 was creating problem, I installed Android 5.0.1 armeabi-v7a and have set 768MB as RAM size and it worked.
Try to check and run the emulator ie. store a snapshot for faster startup...
I have tried that by checking the button and works fine.
If you're using an AMD machine try using the "ARM EABI v7 system image". For an intel chip use the "APIs Intelx86 Atom system image". Also, try a different tablet from the Android Studio settings e.g(Nexus 6), as the API level might not be supported from in the Nexus5 VM. You will also have a little wait time for the android emulator, mine takes about 7mins