110

Whenever I create a new project in Android Studio it wants to put it in a generic default folder at a location something similar to (dependent on OS - Ubuntu here):

/home/USER/AndroidStudioProjects/

I want to change this directory to another location. Besides selecting this new location on the creation of every project, is there a setting (couldn't find) or path variable (couldn't find any documentation) that can set this directory (say /home/USER/Projects/AndroidStudio/) as the default?

Something similar to changing the workspace in Eclipse is what I am looking for.

btalb
  • 6,937
  • 11
  • 36
  • 44
  • Related post - [Change default save location of projects (or Workspace ) in Android Studio](https://stackoverflow.com/q/18012638/465053) – RBT Aug 08 '18 at 12:55

11 Answers11

94

At some point I too tried to do this, but the Android Studio doesn’t work quite like Eclipse does.

It's simpler: if you create a project at, say /home/USER/Projects/AndroidStudio/MyApplication from there on all new projects will default to /home/USER/Projects/AndroidStudio.

You can also edit ~/.AndroidStudioPreview/config/options/ide.general.xml (in linux) and change the line that reads <option name="lastProjectLocation" value="$USER_HOME$/AndroidStudioProjects" /> to <option name="lastProjectLocation" value="$USER_HOME$/Projects/AndroidStudio" />, but be aware that as soon as you create a project anywhere else this will change to that place and all new projects will default to it.

Hope this helps, but the truth is there really isn't much more to it other than what I explained here.

starball
  • 20,030
  • 7
  • 43
  • 238
Rik Martins
  • 1,055
  • 8
  • 4
34

This may be what you want. Settings -> Appearance & Behavior -> System Settings > Project Opening > Default Directory

  1. Open 'Preferences'
  2. Select System Settings -> Project Opening
  3. Set 'Default Directory' where you want.

It worked for me. I tried Android Studio 3.5.

Vamsi
  • 672
  • 4
  • 16
kimikimi714
  • 441
  • 4
  • 2
12

In android studio 2.3.3 (windows) you must go to C:\User\ (Name)\ .AndroidStudio2.3\config\option open recentProjects.xml And change your directory

<option name="lastProjectLocation" value="YOUR DIRECTORY" />

Kourosh
  • 2,239
  • 13
  • 18
  • I believe the "option" in your path (...config\option...) should be "options". Also I have a recentProjects.xml but not a recentProject.xml . – gcbound Sep 12 '17 at 03:38
11

I found an easy way:

  1. Open a new project;
  2. Change the project location name by typing and not the Browse... button;
  3. The Next button will appear now.
MC Emperor
  • 22,334
  • 15
  • 80
  • 130
Zakiye Maarefi
  • 185
  • 2
  • 7
  • 2
    sorry, but I've tried that before, and tried it again just now. Doesn't work. On Windows 7 it defaults back to the old directory, which is just crazy. One would think that something so many people would like to change can be added to the IDE. – Zeus56 Jan 13 '16 at 15:49
  • This does not answer the question – Eddy Jan 03 '17 at 19:24
3
  • This worked for me :- -> Go to settings -> Type system setting in search bar -> Select your location -> Press Apply
1

Top of The Android Studio Title bar its shows the complete file path or Location

Look this image

Machavity
  • 30,841
  • 27
  • 92
  • 100
1

File -> Other Settings -> Default settings... -> Terminal --> Project setting --> Start Directory --> ("Browse or Set Your Project Directory Path")

Now Close current Project and Start New Project Then Let Your eyes see Project Location

Meliodus
  • 11
  • 1
  • Please explain your answer! – Ullas Hunka Jul 14 '18 at 08:15
  • well, it's not working when trying to open an existing project from the android studio start page ( http://prntscr.com/nj1xe4 ) but upvoted because it's working when try to open a new project or create a new project. – Ravi Vaniya May 01 '19 at 10:44
0

I have Android Studio version 3.1.2, it shows project full path when you click Build tab in bottom-left location of the studio.

enter image description here

m.qayyum
  • 401
  • 2
  • 15
  • 44
  • 4
    How does this answer the question? – AaA Jun 23 '19 at 05:04
  • People googled "Android Studio: Default project directory" and found this answer. That's how it answers the question. – m.qayyum Sep 19 '19 at 16:10
  • 3
    The question is asking "How to **change** the default path of project?" your answer says how to see path to "current project". if you are posting an answer, you need to try and answer the question. – AaA Sep 23 '19 at 08:46
0

Try this:

File\Other Settings\Preferences for New Projects\Teminal\Start Directory

RKRK
  • 1,284
  • 5
  • 14
  • 18
0

This worked for me Android Studio 4.0.1:

  1. Close Android Studio.

  2. Navigate to C:\Users[Username].AndroidStudio4.0\config\options

  3. Locate recentProjects.xml and open it.

  4. Scroll down the page you will notice: <option name="lastProjectLocation" value="$USER_HOME$/AndroidStudioProjects" />

  5. Change $USER_HOME$/AndroidStudioProjects to your desired location: /home/USER/AndroidStudioProjects/

  6. Reopen Android studio.

0

The latest Android Studio 4.1.3 is currently located: C:\Users\User\AndroidStudioProjects

R.M. Reza
  • 725
  • 1
  • 8
  • 20