Android Studio: Default project directory

AndroidPathProjectAndroid Studio

Android Problem Overview


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.

Android Solutions


Solution 1 - Android

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.

Let me know if you need anything else.

Solution 2 - Android

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.

Solution 3 - Android

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" />

Solution 4 - Android

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.

Solution 5 - Android

  • This worked for me :- -> Go to settings -> Type system setting in search bar -> Select your location -> Press Apply

Solution 6 - Android

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

Look this image

Solution 7 - Android

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

Solution 8 - Android

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

Solution 9 - Android

Try this:

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

Solution 10 - Android

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.

Solution 11 - Android

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbtalbView Question on Stackoverflow
Solution 1 - AndroidRik MartinsView Answer on Stackoverflow
Solution 2 - Androidkimikimi714View Answer on Stackoverflow
Solution 3 - AndroidKouroshView Answer on Stackoverflow
Solution 4 - AndroidZakiye MaarefiView Answer on Stackoverflow
Solution 5 - AndroidCHANDRA PRAKASH KUMARView Answer on Stackoverflow
Solution 6 - AndroidRamish MajeedView Answer on Stackoverflow
Solution 7 - AndroidMeliodusView Answer on Stackoverflow
Solution 8 - Androidm.qayyumView Answer on Stackoverflow
Solution 9 - AndroidXmen ProView Answer on Stackoverflow
Solution 10 - AndroidIkechi UcheagwuView Answer on Stackoverflow
Solution 11 - AndroidR.M. RezaView Answer on Stackoverflow