Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - Platform and Plugin Updates & Java @ OSX

When I start Android Studio 2.0 and I'm getting following message:

Platform and Plugin Updates

We wanted your IDE to receive upgrades over a secure connection. Unfortunately, this doesn't work on Java 6, so the option was disabled. You can enabled it again in settings after upgrading the JRE.

  • via System Preferences -> Java = Java 8 Update 77
  • via bash -> java -version = java version "1.7.0_71"
  • via Android Studio 2.0 -> Help->About = Java 6

How do I address issue at hand?

like image 885
alexus Avatar asked Apr 09 '16 15:04

alexus


People also ask

What is the latest update for Android Studio?

Android Studio Chipmunk | 2021.2. Android Studio - Chipmunk | 2021.2. 1 Patch 2 is now available in the Stable channel. If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Update (Android Studio > Check for Updates on macOS).

Does Android Studio automatically update?

Once you install Android Studio, it's easy to keep the Android Studio IDE and Android SDK tools up to date with automatic updates and the Android SDK Manager.

What is a plugin in Android Studio?

The Android Gradle plugin (AGP) is the official build system for Android applications. It includes support for compiling many different types of sources and linking them together into an application that you can run on a physical Android device or an emulator.


2 Answers

you can open Finder to find Android Studio.App ->Show Contents-> Info.list

edit "JVMOptions"->JVMVersion->1.7+,1.8+

like image 135
mapleslong Avatar answered Nov 11 '22 12:11

mapleslong


What you're referring to here is the IDE JDK. The guidance on http://tools.android.com/tech-docs/configuration/osx-jdk says the following:

On Mac OSX, the version of Java used to run the IDE is generally chosen for you automatically, and the choice is based on an entry in the Info.plist file in the IDE installation. Please note: Do not edit Info.plist to pick a different version. That will break not only the application signature, but also future patch updates to your installation. Instead, you can pick a different JDK by setting the $STUDIO_JDK environment variable, as described in the IDE Configuration document.

The site goes on to say:

On Mac OSX, the default version we are using to run the IDE (not to compile your code) is Java 6. This is primarily because the font rendering on Java 6 has full subpixel LCD antialiasing, whereas Java 7 and 8 does not.

If you want to run the IDE using a different JDK, you can do the following in the Terminal (changing the path to match what you have installed):

export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk
open /Applications/Android\ Studio.app
like image 22
Daniel Kurtz Avatar answered Nov 11 '22 11:11

Daniel Kurtz