Help us understand the problem. What is going on with this article?

Android StudioのJDK更新手順

More than 3 years have passed since last update.

概要

Android StudioでJDKの設定を更新する手順メモ。

簡易まとめ

  1. Oracle からJDKインストール
  2. File > Project Structure (Command-;) > SDK Location > JDK location を更新

前提

OS: OS X El Capitan
Android Studio version: 2.1.3
JDK: 1.7から1.8に

手順

JDKインストール

以下からJDKダウンロードしてインストール
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Screen Shot 2016-09-16 at 16.39.00.png

バージョン確認

$ java -version                                                   
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

JDKのパス変更

File > Project Structure (Command-;) > SDK Location > JDK location
の項目を
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
に変更
Screen Shot 2016-09-16 at 16.40.33.png

Java Compiler設定確認

File > Other Settings > Default Settings > Build, Execution, Deployment > Compiler > Java Compiler

Project bytecode version (leave blank for JDK default)
の項目が空(未選択)もしくは1.8になっていることを確認
Screen Shot 2016-09-16 at 16.42.40.png

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away