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.
System Preferences
-> Java
= Java 8 Update 77
bash
-> java -version
= java version "1.7.0_71"
Android Studio 2.0
-> Help
->About
= Java 6
How do I address issue at hand?
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).
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.
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.
you can open Finder to find Android Studio.App ->Show Contents-> Info.list
edit "JVMOptions"->JVMVersion->1.7+,1.8+
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With