LoginSignup
4
7

More than 5 years have passed since last update.

「.android」など、自動で作られるドット始まりのフォルダの保存先を変更する

Last updated at Posted at 2017-07-06

前回 eclipse の変更方法を書きましたが、今回は AndroidStudio。

.android フォルダの変更

これは AndroidStudio の設定と言うよりは SDK の保存先になりますので、環境変数を設定することで解消します。

ANDROID_SDK_HOME=C:\dev\hoge 

.AndroidStudioX.X フォルダの変更

これが AndroidStudio の設定ですね。IDEのバージョンに応じてフォルダ名が変わります。
変更するには 「Android Studio」フォルダ内のプロパティファイルを編集します。
※「X.X」の部分はバージョンです

Android Studio\bin\idea.properties
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=C:/dev/hoge/.AndroidStudioX.X/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=C:/dev/hoge/.AndroidStudioX.X/system

その他

eclipse の場合、ini ファイルを編集すれば「.gradle」などのフォルダの保存先も変更されますが、AndroidStudio の場合は個別に設定が必要です。
これは AndroidStudio 内の設定画面で行えるので必要に応じて行いましょう。

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