Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio 4.1 emulator crash

I just upgraded my android studio to 4.1 version:

enter image description here

And tried to run some project on this emulator:

enter image description here

And for some reason, this specific emulator is crashing my android studio, I have noticed that I am getting an error:

enter image description here

After reading about the subject, I uninstalled "Riot Vanguard" but it did not solve my problem.

More info (and partially solving the problem ) can be found in "Update" at the bottom of the question.

In addition, moments after my android studio will get closed I will get a windows blue screen (happens every time).

I didn't have this problem earlier with android studio below 4.1 version, why is this happening?


Update (problem solved for others emulators)

I have run into the same problem on other emulators as well, but I could open those emulators so I could fix the problem:

Solution 1

According to most threads that I have run into, You will need to disable or uninstall "Riot Vanguard":

Open task manager, go to the startup tab, right click on Riot Vanguard, and press disable

enter image description here


Solution 2

If step 1 didn't fix the problem you may want to enable developer mode on your emulator.
For some reason with android studio 4.1 android studio could not find the emulator (It will tell you that there are "No connected devices") without enabling the developer mode

Before Android studio 4.1 version I didn't need to enable the developer mode to run projects on emulators and this is what solved the problem for other emulators for me.


BUT

Although I don't have any problems with other emulators at all I still can`t even open Pixel_3a_API_30c68 emulator without it crashing

How can I fix this problem on the specific emulator?


Update 2

The problem still occurs even After updating android studio to 4.1.1

enter image description here

like image 386
Tamir Abutbul Avatar asked Oct 17 '20 15:10

Tamir Abutbul


2 Answers

Without having "Riot Vanguard" I also could not run any emulator in Android Studio since I upgraded to version 4.1. After some hours I finally found out what caused the problem (in my case):

"Android SDK Tools" have been replaced by other SDK tools (which ?) and is obsolete now. As soon as I UNINSTALLED "Android SDK Tools" the emulator worked again.

Android Studio 4.1 - SDK Manager

like image 160
Harald Mandl Avatar answered Oct 28 '22 22:10

Harald Mandl


I would be interested to know if the java version makes a different. I moved from Windows to Linux because of problems running the emulator. Linux worked great until I moved to Android Studio 4.1. So check java and it was version 11. Changed to java8 and it worked straight first time. Seem to remember there was a setting in Android Studio to set the SDK which I think was version 8. But can no longer find this in settings in Studio 4.1.

like image 25
David Steiner Avatar answered Oct 28 '22 23:10

David Steiner