Android Studio - Error launching Studio JVM DLL Failed to load - android-studio

I am trying to launch Android Studio but i get the following error:
Error launching Studio - Failed to load JVM DLL C:\Program Files\Android\Android Studio\jre\jre\server\jvm.dll If you already have a 32-bit JDK Installed, define a JAVA_HOME variable in Computed > System Properties > System Settings > Environment Variables.
Installation was without errors. OS is Windows 10 Pro

Simply try to run your Android Studio as administrator.

I had the same problem.
Try:
set environment variable JAVA_HOME for your JDK as C:\Program Files\Java\jdk(your version). (C:\Program Files\Java\jdk-17.0.5 for me)
Run Android studio as administrator.
remove file .vmoptions from path android studio/bin (
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360005146240-Error-Launching-Idea-Java-Home-
)
This point really help for me: install it! https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170

Related

JAVA_HOME is set to an invalid directory Android Studio Flutter

type here
Since the last update of android studio to Electric Eel 2022.1.1,
I'm facing this issue while running my flutter project on my phone:
Launching lib\main.dart on Redmi Note 8 Pro in debug mode...
Running Gradle task 'assembleDebug'...
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Android\Android Studio\jre
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Exception: Gradle task assembleDebug failed with exit code 1
And JAVA_HOME variable was sat on 'C:\Program Files\Android\Android Studio\jre'.
I've tried all possible solution that I've looked for but none of them worked.
It seemes the problem is related to the latest version of Android Studio.
What is the issue and how to solve it.
For Windows:
The problem is because of trace of old Android Studio java folder, just delete this folder and it starts working:
C:\Program Files\Android\Android Studio\jre
The new Android Studio Electric Eel is using jbr, not jre.
For macOS:
If you are using macOS replace the path in .bash_profile or .zshrc
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/Contents/Home"
with
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"

failed to load jvm dll android studio Electric Eel

I was trying to install Android Studio Electric Eel on a laptop but after installation when I'm trying to open this error comes,
failed to load jvm dll android studio
I already,
Added JAVA_HOME in system variables,
Added path of Java bin folder,
try this, it's worked for me
just delete the jre folder and it starts working(restart android studio)...
C:\Program Files\Android\Android Studio\jre
The problem is because of traces of old Android Studio java folder,The new Android Studio Electric Eel is using jbr, not jre.
You also need to add your bin directory path in path System Variable
Edit System Variables and add your path as follow

Android studio installation folder not recognize

Android studio v4.2.1 installation folder not recognize when I select Help -> Edit Custom VM Options...
it show below path.
Whereas my Android Studio installed in C:\Android\Android Studio.
I set STUDIO_VM_OPTIONS=C:\Android\Android Studio\bin but not working.
Seems you are not installing Android Studio to the default location path which is : C:\Program Files\Android\Android Studio, and the Android SDK should be installed at : C:\Users\username\AppData\Local\Android\Sdk.
Check out this URL for guidance : https://www3.ntu.edu.sg/home/ehchua/programming/android/Android_HowTo.html#:~:text=by%20default%2C%20the%20%22Android%20Studio,Local%5CAndroid%5CSdk%20%22.
Try to re-install your Android Studio using the default options and paths.
Copy the file studio64.exe.vmoptions from the following path:
C:\Program Files\Android\Android Studio\bin
to
C:\Users\home\AppData\Roaming\Google\AndroidStudio4.2
Move your Android Studio folder to C:\Users\your.username\Android-Studio and retry
Sometimes cmd not recognize your file location , maybe permissions or other thinks.

Android studio doesn't start after fresh install (JAVA_HOME/JDK_HOME solution NOT WORKING)

I uninstalled my older version of android studio (1.4.1) which was working properly (this installation was done a long time ago, and ADK and android studio were installed separately, in fact if I remember correctly I had the ADK installed for use with Eclipse, and I just updated paths in Android Studio to point to that location to use ADK for Android Studio )
I installed android-studio-bundle-162.4069837-windows.exe which apparently comes with both IDE and ADK
However after installation, Android Studio just doesn't start up
I have already added both JDK_HOME and JAVA_HOME to environment variables and the problem is the same
Double clicking on studio.exe studio.exe to get launched (I can see it in the Task Manager for a while) then it just closes (no error message, no IDE splash screen, nothing at all; in fact, if I wasn't looking at the task manager I wouldn't even know if anything was happening)
Computer setup:
Windows 7 service pack 1 32 bit
Android Studio is installed at
C:\Program Files\Android\Android Studio
studio.exe is in
C:\Program Files\Android\Android Studio\bin
Contents of studio.exe.vmoptions
#
# *DO NOT* modify this file directly. If there is a value that you would like to override,
# please add it to your user specific configuration file.
#
# See http://tools.android.com/tech-docs/configuration
#
-server
-Xms256m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-da
-Djna.nosys=true
-Djna.boot.library.path=
-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Didea.paths.selector=AndroidStudio2.3
-Didea.platform.prefix=AndroidStudio
-Didea.jre.check=true
Location of Java:
C:\Program Files\Java\jdk1.7.0_25
I installed android-studio-bundle-162.4069837-windows.exe
android-studio-bundle-162.4069837-windows.exe is for 64-bit OS, whereas, you need to download and install the one with android-studio-ide-162.4069837-windows32.zip
As you can see here: https://developer.android.com/studio/index.html#downloads
Meaning that, the one you are stating that the one you downloaded targets to: Android Studio Windows 64-Bit [Top link in the table]
Whereas, you need to download and install the one which is: Android Studio Windows 32-Bit [4th link from top in the table]
Also, if you look closely, it is explicitly stated that the one you downloaded is 64-Bit & has -bundle suffix & .exe extension, which also includes Android SDK, but the one your PC supports explicitly has -ide suffix & .zip extension. Included: No Android SDK, no installer

problems with x64 compiler while trying to install a scilab toolbox

I am trying to install the scilab toolbox "Open Pattern Recognition".
I have installed Microsoft visual studio 10.0 and windows SDKs 7 and 7.1 since Microsoft visual studio has by default only 32x compilers and I have a windows 7 Sp1 64 bit system.
When I try to execute the builder file with scilab (vers. 5.5.2, 64bit) in order to run the installation of the toolbox an error appears:
"NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.EXE"' : return code '0x2'"
I have already tried to run the varsall.bat file with the amd 64 option to configure the path environmental variables. When I do this I get the error message:
”The specified configuration type is missing. The tools for the configuration might not be installed”.
Please, can anyone help me ?

Resources