Quantcast
Channel: Nick – Nick Hayden – Web Development for the Masses
Viewing all articles
Browse latest Browse all 22

Android Studio “unable to find a valid JVM”

$
0
0

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

Viewing all articles
Browse latest Browse all 22

Trending Articles