Android Emulator is Blank - android

I have a mid 2013 Macbook Air (so I should have the resources to make the emulator work) and I'm trying to get the Android Emulator working. It's been half an hour and the color pinwheel continues to spin. In the meantime I looked up and downloaded Andy and BlueStacks Android emulators but Andy was nothing more than a clock with no buttons and BlueStacks, while it had a number of options there was nothing that seemed evident that I could get 'Hello World' running from the basic tutorial.
http://developer.android.com/training/basics/firstapp/running-app.html
I want to progress but I'm stuck. Thanks.

I would look into Genymotion. They have a great android emulator that can spin up vms for different phones. Its free for personal use and easy to use. The VM image is download directly from their server so when it gets corrupted you can delete it and add it again.
It is also recognized by Eclipse and Android Studio.
There should be two downloads, one that includes Oracle VM and one that doesn't. I recommend the one that does so you do not need to install Oracle VM by its self.
If that doesn't work post a comment and ill see what I can do.

try restarting your computer..

When you start an emulator you should "Store a snapshot for faster performance" in the Android Virtual Device (AVD) configuration or the emulator won't start at all. After too much time troubleshooting, it was as simple as that.

Related

Using an existing Android emulator in IntelliJ Idea

So this is probably really simple and easy but I've been unable to find anything on the googles.
Once I've got an android emulator up and running from within IntelliJ Idea, and tested my project in it and then write a little more code, how do I push the new build onto the existing emulator?
I'm asking this because right now, I have to close the emulator each time and then relaunch the emulator again which takes forever to boot up.
For one thing take a look at the GenyMotion emulator it is way faster. There is a free version with a few of the bells and whistles disabled but it is way better than the AVD's provided with AS or Eclipse. Make sure you set a configuration for the app.

Android SDK Emulator won't load

So i'm having awful trouble trying to get the Emulators in the Android SDK to start up. I can create the AVDs just fine, and then when hitting the 'start' button from the SDK Manager, bring up the small loading console window, indicating that the emulator is launching. However, after that, nothing happens!!
I have read many threads and posts with people having the same problem, maybe to do with the settings requiring too much memory, with some people waiting 30 minutes for the emulator to load!!
When trying to run the AVD emulator through terminal, I simply get a 'Bus Error' with no further indication of what could be going wrong...could it be a memory issue?
What I did to get where I am now:
Download the Android SDK package for Mac. I'm extracting the sdk only, not eclipse. I'm on Mac 10.6.8.
Install the SDK, and download the latest version of Android in the SDK Manager, along with default tools.
create a AVD and hit start.
window pops up to boot the emulator, that process is complete and window closes.
Nothing happens.
My knowledge of the sdk tools are very limited, all I want is to be able to do some testing...
Any help greatly appreciated!
Thanks
Actually, the simplest way to get emulators running right now is probably GenyMotion. They provide an interface, and pre-configured emulator images to make it pretty simple to get running.
This is not an endorsement (I use the standard ADT myself) but a lot of people find their tools useful.
Here is my suggestion: instead of using AVD, start using espresso and virtual remote android hardware emulator from Google servers - also known as android-test-kit. You will have the possibility to run and test you App on several different devices, without the need to spend money on actually all different devices for developing and testing purposes before releasing your Apps. You find further details here:
android-test-kit
Why Espresso
The 2 videos are somewhat long, but worth watching.
Taking this approach will solve your problem, save you money, and improve your productivity.
I run into the same issue on my mac 10.6 and it only works if i do
emulator64-x86 -avd my_android
Besides, my virtual device has to configured using x86 but not ARM
maybe this link can help you.

IntelliJ Idea - Android Virtual Device doesn't start

I'm using IntelliJ Idea 13 to develop Android applications on Ubuntu 12.04 64-bit. But my virtual device never starts despite there is no error.. its screen always stays like this:
My Android target level is 4.4 (API 19). How can I solve this issue?
Edit: Here is my AVD details:
I Recommend you look at this post to a similar question.
https://stackoverflow.com/a/5535532/2978914
they are using eclipse but you should be able to view the logcat, other posts say first load can be ridiculously long.
the spec of your PC may come into play as this post https://superuser.com/a/347298 explains the way the emulator converts to arm opcode: direct quote:
To use emulator more effectively, this is my experience:
Don't close emulator everytime you run your application.
Scale the emulator screen smaller.
Disable snapshot (Yes, it's useful but it takes time to close the emulator).
Specify a file path for SD card image file. I use only one SD card for many AVDs.
If you got any problems in adb, just reset adb, don't close emulator.
Open few programs in your operating sytem.
If you are using Windows, don't ever close emulator. Do it combined with Hibernate of Windows.
My AVD has started after I check "Use Host GPU" option from "Emulation Options".

Result doesn't show up when emulate with AVD on Mac

I'm a newbie for Android development. I want to run a Hello World on the emulator in Eclipse as my starting point, but the magic words never show up. I just follow the tutorial, Launch the Android Virtual Device Manager, Create a New AVD and Click Run.
But Everything is fine if it runs on a real device. Is there any special setting on Mac?
Please help.
You have to wait a long time util it appears. I'd advise you to use USB debugging and a real device. It works much faster than the emulator. In addition you can use the app with the normal gestures and all the sensors like camera etc.. But as I said: it's much faster than the AVD.
Check Console tab in Eclipse for information about APK upload and installation progress.
Is there any special setting on Mac?
No there is not. Settings are pretty much the same on all platforms.

Extremely slow AVD fully allocates resources

I'm beginner on Android applications. I followed the steps in tutorial and prepared development environment on Vista (Eclipse Helios + Android SDK 12 + JDK6).
I created a minimal AVD with 32mb SD card and 128mb ram, enable snapshot.
and set current AVD in run configurations of application as automatically.
Emulator is extremely slow and CPU usage 100% shared by eclipse and emulator,
memory consume is also in limit.
Do you have any suggestion to optimize it? It's my first step in development android app, and i don't want to be discouraged.
Thanks a lot,
Semanur
You can use Bluestacks App player or Youwave For Android.
Those emulators are very much faster than eclipse emulators. You will find that they are most likely runnning your app on a real phone.
Emulators use significant resources but with a medium computer it should run ok.
Try creating a new emulator instance with default settings, HVGA and no snapshot and no sd card.
Use android 2.2 for this test.
This one should run pretty smoothly on a medium computer.
Let us know the results.
As everyone else has stated, the emulator is terrible for testing. I'd suggest debugging on a device, even if that means only being able to test one API and screen size.
Launching from a snapshot is also a way of cutting the loading time and resource load on the CPU. I found it to still take a considerate amount of time still, but it is less than half of what it took before.
you can download and install genymotion virtual device,, it is 3x faster then normal AVD

Categories

Resources