Android Studio “unable to find a valid JVM”

Today I needed the Android SDK to run an Ionic Framework app but didn’t have Java installed. Every time I tried to run Android Studio I was getting an error saying “Android Studio was unable to find a valid JVM.” After doing some perusing around the web I came across a post that said to add the following line:

export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk

This seemed to solve my problem and Android Studio is now running fine. One of the comments suggests running:

launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like