Android Studio: Default project directory
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
- Open 'Preferences'
- Select System Settings -> Project Opening
- 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:
- Open a new project;
- Change the project location name by typing and not the Browse... button;
- 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
Related videos on Youtube
btalb
Updated on April 20, 2021Comments
-
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.
-
RBT almost 6 years
-
-
Zeus56 over 8 yearssorry, 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 over 7 yearsThis does not answer the question
-
gcbound almost 7 yearsI believe the "option" in your path (...config\option...) should be "options". Also I have a recentProjects.xml but not a recentProject.xml .
-
Ullas Hunka almost 6 yearsPlease explain your answer!
-
Ravi Vaniya about 5 yearswell, 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 about 5 yearsHow does this answer the question?
-
m.qayyum almost 5 yearsPeople googled "Android Studio: Default project directory" and found this answer. That's how it answers the question.
-
AaA almost 5 yearsThe 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 over 4 yearsSettings -> Appearance & Behavior -> System Settings -> Project Opening -> Default Directory This is the simplest solution with the newer android studio 3.5^
-
Sajeeb Chandan Saha about 4 yearsAbsolutely the answer I've been looking for. Thanks a lot. :)