Android Studio was unable to find a valid JVMAmong some workarounds for the problem that I found in this Stackoverflow thread, I think the simplest one is by creating a small bash script that export the environment variable for the JVM and launch the Android Studio. For example, in my machine the JVM is located at /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk, so the script looks like this:
#!/bin/bash export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk open /Applications/Android\ Studio.app
That's all :)
you need to execute 'lauchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk' only once
ReplyDeleteworked for me!!!!!!! thanksssss!!!
ReplyDeleteWorked for me too. Thanks :)
ReplyDeleteIt worked for me as well. Thanks!
ReplyDeleteI have installed the latest version of Java for osx but my Javavirtualmachines folder is empty. How can I correct this? Thanks!!
ReplyDeleteHi mick, have you managed to solve the trouble? did you install the latest update from Apple or from Oracle? In my case, I am using java from www.java.com.
DeleteThanks and I have a tremendous supply: How To House Renovation complete house renovation cost
ReplyDelete