In my project I clicked Invalidate and restart
then studio was closed and such error pop up appeared
I rebooted my computer. Then I updated my Java as well as updated the path to the Java dir
One more time rebooted my computer, but anyway the same error pop up
Also for me not clear why at last lines of error wrote that
Failed to create JVM. JVM Path: C:\Program Files\Android\AndroidStudio3.3\jre\jre
Why does studio tries to get java by this path if in system variables
path is - C:\Program Files\Java\jdk1.8.0_161
Also I have studio 3.2.1 and it is works, but studio 3.3.1 does not... So, as for me it is means that problem not in the java path
What I am doing wrong?
EDIT
Just now I have reinstalled studio 3.3.1, but nothing changed... The same error
EDIT Added this variable C:\Program Files\Java\jdk1.8.0_161\bin
to PATH in System variables(image below), clicked OK
, but it does not helped
EDIT My variables
C:\Users\alexey.t>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\alexey.t\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=C035
ComSpec=C:\WINDOWS\system32\cmd.exe
DriverData=C:\Windows\System32\Drivers\DriverData
HOMEDRIVE=C:
HOMEPATH=\Users\alexey.t
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161
LOCALAPPDATA=C:\Users\alexey.t\AppData\Local
LOGONSERVER=\\PITON
NUMBER_OF_PROCESSORS=8
OneDrive=C:\Users\alexey.t\OneDrive
OS=Windows_NT
PATH=C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java
\javapath;C:\Users\alexey. t\AppData\Local\Android\sdk\platform-
tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\System32\Wbem;C:\WINDOWS\System3 2\WindowsPowerShell\v1.0\;C:\Program
Files\Microsoft SQL Server\Client
SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Files\Java\jdk1.8.0_161;C:\Users\alexey.t\AppData
\Local\Microsoft\WindowsApps;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program
Files\WindowsPowerShell\Modules;C:\WINDOWS
\system32\WindowsPowerShell\v1.0\Modul es;C:\Program Files (x86)\Microsoft
SQL Server\120\Tools\PowerShell\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\alexey.t\AppData\Local\Temp
TMP=C:\Users\alexey.t\AppData\Local\Temp
USERDNSDOMAIN=EWAVE.CO.IL
USERDOMAIN=EWAVE
USERDOMAIN_ROAMINGPROFILE=EWAVE
USERNAME=Alexey.T
USERPROFILE=C:\Users\alexey.t
windir=C:\WINDOWS
EDIT
My vm options
-Xms256m
-Xmx1280m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djna.nosys=true
-Djna.boot.library.path=
-da
Feel free to ask, also let me know any of assumption
from Failed to create JVM Android studio
No comments:
Post a Comment