Android Studio: Default project directory

265,103

Solution 1

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

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

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

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

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

Related videos on Youtube

btalb
Author by

btalb

Updated on April 20, 2021

Comments

  • btalb
    btalb about 3 years

    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.

  • Zeus56
    Zeus56 over 8 years
    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.
  • Eddy
    Eddy over 7 years
    This does not answer the question
  • gcbound
    gcbound almost 7 years
    I believe the "option" in your path (...config\option...) should be "options". Also I have a recentProjects.xml but not a recentProject.xml .
  • Ullas Hunka
    Ullas Hunka almost 6 years
    Please explain your answer!
  • Ravi Vaniya
    Ravi Vaniya about 5 years
    well, it's not working when trying to open an existing project from the android studio start page ( prntscr.com/nj1xe4 ) but upvoted because it's working when try to open a new project or create a new project.
  • AaA
    AaA about 5 years
    How does this answer the question?
  • m.qayyum
    m.qayyum almost 5 years
    People googled "Android Studio: Default project directory" and found this answer. That's how it answers the question.
  • AaA
    AaA almost 5 years
    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.
  • Vamsi
    Vamsi over 4 years
    Settings -> Appearance & Behavior -> System Settings -> Project Opening -> Default Directory This is the simplest solution with the newer android studio 3.5^
  • Sajeeb Chandan Saha
    Sajeeb Chandan Saha about 4 years
    Absolutely the answer I've been looking for. Thanks a lot. :)