15

I have just installed Android Studio in my new notebook running Windows 10 - 64 bits with Java SE 8 152, but it suddently it stopped working, like, every time I try to run the Android Studio, the error message below appears:

"The application cannot be initialized correctly (0xc0000005)"

I've already tried to reinstall, run as admin, deactivate the antivirus... nothing worked.

shmosel
  • 49,289
  • 6
  • 73
  • 138

6 Answers6

27

I had similar problem and disabling "Force randomization for images (Mandatory ASLR)" for studio64.exe in Windows Defender Security Center > App & browser control > Exploit protection > "Program settings" tab fixed this (you have to point to exact binary file with full path as using just executable name doesn't seem to work).

revanmj
  • 404
  • 4
  • 6
  • You can do the same with this command from an elevated powershell: `Set-ProcessMitigation 'C:\Program Files\Android\Android Studio\bin\studio64.exe' -Disable ForceRelocateImagess` – SteakOverflow Mar 05 '23 at 10:01
7

AVD Settings -> Edit Image set Graphics to Software GLES 2.0

enter image description here

Momen Zaqout
  • 1,508
  • 1
  • 16
  • 17
0

I had similar problem and disabling Data Execution Prevention for studio64.exe in Windows Defender Security Center > App & browser control > Exploit protection > Program settings tab fixed this (you have to point to exact binary file with full path).

My Force randomization for images (Mandatory ASLR) was already disabled by default

IAmAliYousefi
  • 1,132
  • 3
  • 21
  • 33
0

At my case, happened at Vs2019 enterprise and pro, and VS 2022

After reading and searching at internet, the error caused by one kind of computer virus..

After I re-install windows, and re-install all application freshly downloaded from internet (not .exe from local hardisk), the error gone.

.exe files can be infected by some viruses, so I need to re-download fresh .exe from internet (guine source from producer)

toha
  • 5,095
  • 4
  • 40
  • 52
0

Both configure Windows Defender.

Open "Windows Defender Security Center" from Windows settings. Open "App and browser control". Open "Exploit Protection Settings" in "Exploit Protection".Select "Program Settings" at the top, then select in the following order:

"Add and customize programs" "+" button

"Add by program name"

Enter "studio64.exe" and set the following:

"Force image randomization (mandatory ASLR)"

Check "Override system settings" turn off _

"Randomize virtual memory allocation (bottom-up ASLR)"

Check "Override system settings" turn off _

-1

Install fresh Windows and don't install Java kit (JDK) this caused the 0xc000005 problem for me.

Unheilig
  • 16,196
  • 193
  • 68
  • 98