Runing the emulator makes my whole computer crash - android

Android promted me to upgrade to 3.5 today so I have. Even since I've been having issues with the AVD and running my code on the emulator.
I've posted about my previous issues here
After those solutions still didn't allow me to run the app (different errors) I've decided to just uninstal and reinstall Android studio.
Now, every time I try to run it my whole computer crashes.
It starts with this screen popping (sorry for the terrible photo, had to be quick). It says emulator warning: crash service did not start.
And then this:
What am I supposed to do? Already completely uninstalled Studio.

Ok, I don't know exactly what the problem was but it seemed to be solved. As I mentioned, when I've unistalled and reinstalled before the problem persisted. Even if I've uninstalled all the devices from the avd and created new ones.
This time I've done the same but didn't just install a new device, but did it with a different version (Oreo 2 instead of 26). I'm not sure why but it works now.

You should create a new emulator whose settings reduce the size of the ram and memory.

Related

No emulators are currently running

No emulators are currently running
Wrote a program in Kotlin. Everything was fine, everything worked. I turned on my laptop a week later. Launched Android Studio/AS/. The code opens fine. Only emulators do not display the phone. Writes that there are no working emulators. No reboots of either the system or the AS, updates with a full restart of the program help. I want to delete the device, Device Manager/DM/ also does not allow it, because DM says that it is now working. I can’t find any AVD services. In the Task Manager, I can’t find anything either.
Dear gurus advise what to do.
The next step is to reinstall AS. I just can’t reinstall AS every time the emulator freezes.
Thanks in advance.
By the way, as I have no choice I reinstall the AS that helps.

Android app slow when installed from Android Studio, but runs fine when installed from adb

I'm not really sure how to word this.For some reason when I install an app that I'm working on from Android Studio it runs very slow (when an option is pressed it takes 10-20 seconds to register). But if I install the app from either my coworkers Android studio or adb from my own machine it works fine.
My specs are:
OS: Windows 10
Android Studio Version: 3.0.1
Phone OS: Android API 24
It was working fine this morning, but during the course of the day, something has happened. Has anyone run into this sort of problem before?
I'm using a Samsung Galaxy S8 physical device. I have tried a factory reset on the phone which worked for one install after I changed some things I'm back where I started. I have also restarted both the machine and phone multiple times. I'm at a loss as to what is going on. If you guys need any more info let me know. Also INSTANT RUN IS NOT ON.
EDIT: I'm at a total loss as to why this is happening. I've tried everything from restoring the phone, reinstalling Android Studio, changing wires, changing settings, but nothing is working. If anyone has a suggestion I will gladly try anything.
I've finally found a solid solution to my problem. I'm positive now that something went wrong with m usb drivers for windows 10. I went to this page https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/windows-10-slow-usb-30-transfer-speeds/a5e1eebb-74bb-4777-8902-5131f3e8ec3e and I completed the steps in method 1 and that did the trick for me. it took a while to find this out, but hopefully, someone else will find this helpful.
Have you compared your yesterday build and today build which is making your app slow. Any Significant change in code?
Have you set up breakpoints or similar? Some debugging options can significantly slow the app down at runtime. When this happens, if you disconnect the phone from ADB - e.g. pull out the cable - and it speeds up again, then it's likely related to your debug connection to that particular instance of Android Studio.

Emulator comes up, but is very unstable

The emulator comes up but its very unstable. It keeps giving me the window that asks to send data to microsoft. The it becomes not responding and freezes up. Sometimes I might keep it up for a while and am not doing anything to it and all of a sudden it pops up the debug window.
Is there something I can do to make it more stable.
This is specific to your system and the software installed on it. The emulator is rock solid (mostly), so try and solve the problem on your system.
I had such problems when trying to create an emulator with higher resolutions.
Creating a simpler device solved my problem. Probably it was due to my PC specs (P4 2.4 Ghz, 1 GB of RAM).
I have found emulator instances and the AVD manager itself to be VERY flakey.
This is despite re-installs, constant SDK updates and across multiple machines.
Often the only resolution I've found is to delete the AVD that is crashing and recreate it from scratch.
Also make sure you are using the snapshot facility so that you are at least loading fast when it does crash.

Android AVD Problem

I just created a android AVD which runs on the 3.1 version. After it starts running, it takes a lot of time to move from one activity to another. Is there any way I could speed up this process.
Emulators will always run much slower than the devices. Anyhow, the android emulators now are much faster than before, so make sure you keep your sdk updated (and you obviously have, since you're running 3.1).
Also, I consistently noticed that emulators running in ubuntu 11 are faster than the same emulators in Win 7 (same hardware), so you might want to give ubuntu a try.
Android emulator takes a lot of memory while it's starting up. It's normal. The thing you can do here is using a feature called snapshot. Snapshot will save your time (and probably resources) from the start booting up.
Read this article for more details:
Optimizing Apps for Android 3.0
under the "About Emulator Performance" section.
Hope it helps.

Android Emulator SD Card Problem

I have a problem with the Android Emulator and its SD card. I am developing an application that writes files to /sdcard. Everything works fine, until I exit the emulator by clicking its close button. After restart the files are empty (size 0), but still in the directory. Of course, they have not been empty as long as the emulator runs.
This looks like a failed sdcard unplug, like with usb stick. But I am not sure, how the emulator treats the card exactly. I am starting the emulator from Eclipse, and get an error at exit, when I close the emulator.
The problem did not exist before I updated my Android plugin. I could use all my files after restarting the emulator. Moreover, the problem does not occur on the real thing. I am using the most recent Android stuff, and Eclipse 3.5.
I already tried deleting my emulators and creating a new one. I also tried shutting the emulator down with the red telephone button, but that did never complete. Of course, my app is not a service and has no threads pending at shutdown.
Any ideas, you friendly people out there?
I am currently seeing the same problem on mine using an API 4 emulator, but putting the apk on my actual android device it works fine. It only happens if I close the emulator and restart using "Debug As" or "Run As". My current workaround is to start the emulator before running / debugging my app... not shutting down the emulator prevents this from happening, although I wish I had a real fix.
The problem went away by itself. I have no idea, what caused the healing. I did not do anything particular. I just continued working.
Thanks for your attention.

Categories

Resources