LoginSignup
14
12

More than 5 years have passed since last update.

Android StudioのJDK更新手順

Last updated at Posted at 2016-09-19

概要

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

14
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
12