7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac にAndroidStudioではなく IntelliJ IDEA Community Edition でandroid 開発環境を構築する

Last updated at Posted at 2017-03-29

なんでAndroid Studio と IntelliJ IDEA と両方入れなアカンねん という人用

java 初心者のため指摘頂けると嬉しいです。

android-sdk のインストール

brew cask install android-sdk

環境変数を .zshrcに書く

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export STUDIO_JDK=${JAVA_HOME%/*/*}
export ANDROID_HOME=/usr/local/Caskroom/android-sdk/25.2.3

IntelliJ IDEA 用の環境変数設定

launchctl setenv ANDROID_HOME /usr/local/Caskroom/android-sdk/25.2.3

使うバージョンのプラットフォーム? をインストール

sdkmanager "platforms;android-25"

IntelliJ IDEA側の設定

Project Structure -> Project -> Project SDK で Newから /usr/local/Caskroom/android-sdk/25.2.3 を選択

7
2
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
7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?