Android Emulator never finishes loading - android

I'm trying to launch a project in Android Studio using the Android Virtual Device Manager. At first the Android Emulator pops up with a Google icon and a loading bar, but it never actually finishes loading.
I also tried running the program without using the Device Manager and just clicking the 'Run' button. A, in which case I get this:
"Instant run requires that the platform corresponding to your target device (Android P Preview) is installed."
And if I click on "Install and continue" it says:
"All packages are not available for download!
The following packages are not available:
- Package id Platforms;android-P"
These are all the versions I have installed:
Instant run requires that the platform corresponding to your target device (Android P Preview) is installed.As you can see, the Android P Preview is actually installed. Although it says on the right it's "Partially installed" there doesn't seem to be any update option.
I have no idea why this won't work.
Please help.

This seems like a memory issue with your AVD. Newer API emulator images may require at least 1 or 2GB of RAM in the AVD's settings, and a larger VM heap size.
Setting RAM too low will cause the emulator to either fail to start, or start but never end booting. Use at least 1024 or 2048 MB for API26 images.
Setting RAM to a value higher than your system’s capacity will fail to start the emulator
Emulator’s first boot seems to require more RAM. If you create an emulator with 512 MB for the first time, it might never end booting and hang. If you create it with 2048 MB, start it up, then close it, you may be able to run it with as little as 512 MB from now on, to a certain extent. All RAM values here refer to the AVD’s assigned RAM
Taken from this blog post. Also check out there if you need HAXM or Hypervisor for hardware acceleration.

Related

Android AVD not launching

I am using Eclipse to develop android applications. Initially the AVD used to run fine but when I launched it today, it just did not load. It just kept showing the blank screen with the word ANDROID glowing. I waited for quite a couple of minutes but it did not start. I even reinstalled my sdk but still no progress.
I am using Windows 7(32 bit) with 4 GB RAM.
Check virtual devices characteristics of your device created, sometimes if you choose a big resolution it doesn´t wokrs. check this.
also, I recommend you to use Android studio because eclipse is no longer used

Can't run a hello world program in Android Studio

I just installed the latest Android Studio to get started off with Android app development. I have 2 GB of RAM running in my 32-bit laptop. As soon as I try to run the basic hello world program, it gives me the following error message. I don't understand this. Do I have all the necessary packages installed or is there something missing? Please tell me I don't have to update any hardware.
emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB.
emulator: device fd:592
HAX is not working and emulator runs in emulation mode
emulator: The memory needed by this VM exceeds the driver limit.
Cannot set up guest memory 'pc.ram': Invalid argument
Error accepting connection, aborting
Well i think you have 3 options here
Number 1
Use Genymotion
Number 2
Start testing on a real android device
Number 3 (i like this more)
Edit the AVD that you are using and set the memory to 512 MB
will reducing to 800 mb help? If so? How do I do that?
First step
Window -> Android Virtual Device Manager
Second Step
Select your device and click Edit button in right part of window
Third Step
In Memory Options secton find RAM parameter and set it to 512. Click OK for saving option
Rerun the emulator and it should work.
Good luck
Click on AVD manager,it will open already created avd. Click on edit AVD icon which as right side (second last). after that click on show advance setting. from here you can reduce size of RAM to 512 MB. Good Luck

Avd not launching on the eclipse

I have created a avd for nokia x on my eclipse. And is successfully created but when I start it , it does not starts up. it shows that its launching with a progress bar but it does not launches and does not gives any error also. I have installed all required plugins
Please delete your current AVD and restart the Eclipse . Sometimes, some abnormal malfunctions may happen unknowingly...
I'm attaching a screen shot for you to create an AVD with all necessary details., please follow and create the new AVD. That should help you to proceed further.
on a sidenote - I believe you system has a minimum of 4GB RAM in order to see the AVD coming up faster. If the RAM is less, then it may take good amount of time to come up and show on the screen.
I believe you are also aware of the HAXM and Intel Virtualization technique to make the Emulator run faster. If any doubts...follow this link as well posted by me - HAXM guidelines

Android emulator slow & faulty after SDK upgrade

Recently upgraded from API 16 to 17. Has been retaining all AVDs that were added before and they were working fine after the upgrade too. But today I deleted all old AVDs and added few new ones, each with each device specification available. Earlier, the booting time was around 5 minutes for AVDs with recent versions (4.1.2) and around 2 minutes for AVD with 2.3.3. But now, AVDs with 4.1.2 or 4.2.2 takes 10 to 15 minutes to boot. Moreover, it fails to load launcher. When I touch on the launcher button on the Home screen, it loads the list of Apps and displays a usage tip, "To add an app to your Home screen, touch & Hold it" over it. So far expected. But touching on "OK" for this tip leads to "Unfortunately, Launcher has stopped" error. Not touching on anything leads me back to the home screen.
Tried unchecking AVD options, "Hardware keyboard present" and "Display a skin with hardware controls". Still the issue remains.
It was a memory issue. Problem fixed on incrementing the default value of VM heap by a factor of 16. (16 to 32 and 32 to 48).
I know this should be more a comment then an answer, but I'm too new to StackOverflow. Hopefully a mod transfers this answer.
Are you using an Intel image? Because those ARM images are really slow. When you want to use an Intel image you should also install HAXM (https://stackoverflow.com/a/10772162/1741111). Be sure to select it the right settings. 768 RAM is the maximum on Windows.
These are my settings:
Yes, same issue on my latest SDK for Android 4.4. I am running the "ARMeabi-v7a", from the AVD (Android Virtual Device) Manager.
Every time I started the emulator, it would crash once you selected the apps screen, and tried to launch an app. The emulated app launcher would crash with
Unfortunately, the Launcher has stopped.
Really a pain.. I am running at the API level 19, so probably due to internal program bloat...
Once I raised the VM heap memory from 16 to 48, I noted that a special help program runs, with a big outline of a hand pointing at the "Downloads" app, and explaining that you can press and hold any app to move it to the main screen.
I am running on a WIN-XP (32-bit) old dual core Centrino Toshiba Satellite Pro, so maybe on newer 64-bit machines, the error does not show up. But thanks, Rajeesh.
I just used AVD Manager to edit the parameter screen for the ARMeabi-v7a emulated target device, and now the emulator launches successfully, and I can see (and run) my first "Hello World" app, built with the Eclipse ADT stuff. - Mark_L

Is it just me...or is android honeycomb 3.0 emulator really slow?

Well? I've tried increasing the RAM size of the emulator to 1024 MB and there was little improvement on the speed, however, it's still unusable. It has the speed of a turtle.
Anyone got better ideas to make it faster? Is there something I'm not doing correctly?
Check out the android developer documentation regarding 3.0 emulator performance. Scroll down to About Emulator Performance.
Copied tip for convenience:
Tip: To improve the startup time for the emulator, enable snapshots for the AVD when you create it with the SDK and AVD Manager (there's a checkbox in the AVD creator to Enable snapshots). Then, start the AVD from the AVD manager and check Launch from snapshot and Save to snapshot. This way, when you close the emulator, a snapshot of the AVD state is saved and used to quickly relaunch the AVD next time. However, when you choose to save a snapshot, the emulator will be slow to close, so you might want to disable Save to snapshot after you've acquired an initial snapshot (after you close the AVD for the first time).
Seems like everything 3.0 and beyond is slow for me. Everything before that runs very fast in emulator for me. However, I have an Intel integrated graphics card in my laptop. When I turn 3D setting to "Application Settings," I get relatively decent performance from the emulator, at least when it starts up, but then when I try to start any app from the default main app menu (contacts, for example) I get launcher errors. That happens for me on 3.0, 3.1 and 3.2. The one thing I'm suspicious of is that I'm running 64-bit Java SDK. Seem to be a number of posts out there related to 64-bit, but mostly they seem to be point to using 64-bit SDK with 32-bit Eclipse or vice versa, but in my tests, I am not even running Eclipse, haven't even reinstalled the ADT yet, just the Android SDK and created a few emulator instances. Again, prior to 3.0 everything is fast. 3.0 and beyond not good, but A LOT better with graphics settings as I mentioned above. If I could get past the launcher issues, I think I might be all set. Oh, btw also, for 3.0 and beyond, I bumped the memory up to 1024. I've tried increasing the heap for apps to double the default (from 48 to 96) but that doesn't seem to have alleviated my launcher problems.
It is slow. You can try creating a new Emulator with a smaller resolution.
I remember someone at google I/O saying that the HoneyComb emulator will run really really slow due to hardware acceleration turned on.
The PC may use software rendering for OpenGL hence the bad performance. The almost everything you see on the HoneyComb screen is rendered using OpenGL ES.
감사합니다,
Reno

Categories

Resources