Tag Archives: android studio

Android Studio was unable to find a valid Jvm on MAC #Solved

If you have installed Android Studio on your MAC, you may run into an error that says “Android Studio was unable to find a valid Jvm” when you try to open this up. After a little work I was able to get it fixed and here is how I did it.

The problem:
/Applications/Android Studio.app/Contents/Info.plist has a setting in there that is looking for JDK 1.6*. Any good computer user will update their java as they need to so chances are that you will have 1.7 or even 1.8.

The solution:
We just have to tell Info.plist to look for your version instead of 1.6

The steps:

    1. Go here and check which java version that you have – https://www.java.com/en/download/installed.jsp.
      1. Mine was 1.8
    2. Edit /Applications/Android Studio.app/Contents/Info.plist
      1. May live somewhere else on your machine
    3. Change
      1. <key>JVMVersion</key>
        <string>1.6*</string>
    4. to
      1. <key>JVMVersion</key>
        <string>1.(7 or 8)*</string>
    5. Save and exit

That fixed me right up and I was able to start working in the tool.

Hope it helps.

Advertisements
Tagged ,