Android Studio - Platform and Plugin and Java @OSX Updates

When I launch Android Studio 2.0 and get the following message:

Platform and Plugin Updates

We wanted your IDE to receive updates through a secure connection. Unfortunately, this does not work on Java 6, so the option has been disabled. You can enable it again in the settings after updating 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 can I solve the problem?

+5
source share
3 answers

What do you mean here is the JDK IDE. The manual 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 usually selected automatically, and the selection is based on the entry in the Info.plist file in the IDE installation. Please note: do not edit Info.plist to select a different version. This will violate not only the application signature, but also future patch updates for your installation. Instead, you can select a different JDK by setting the environment variable $ STUDIO_JDK, as described in the IDE configuration document.

The following is said:

In Mac OSX, the standard version that we use to run the IDE (not to compile your code) is Java 6. This is primarily due to the fact that rendering of fonts in Java 6 has full anti-aliasing of the LCD subpixels, whereas Java 7 and 8 no.

If you want to start the IDE using another JDK, you can do the following in the terminal (changing the path according to what you installed):

 export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk open /Applications/Android\ Studio.app 
+2
source

you can open Finder to search for Android Studio.App β†’ Show Contents-> Info.list

edit "JVMOptions" β†’ JVMVersion-> 1.7 +, 1.8 +

+4
source

The JRE is different from the SDK, so on OS X you can fix the problem through plist or Terminal.

ctrl-click the Android Studio application and select "Show Package Contents". Open Info.plist with TextEdit or the editor of your choice. Scroll down to the bottom or use cmd-f to find this key. Make sure it looks like this.

 <key>JVMVersion</key> <string>1.7*,1.8+</string> 

You can change it to <string>1.7,1.8+</string> , which will force Android Studio to use JRE 1.8 by default, but there are problems with drag and drop with this version in Android Studio, so it’s better to wait and just leave it on <string>1.7*,1.8+</string> .

You can also fix this problem in the terminal.

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

+2
source

Source: https://habr.com/ru/post/1246782/


All Articles