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.
This question is related to
android
path
project
android-studio
This may be what you want. Settings -> Appearance & Behavior -> System Settings > Project Opening > Default Directory
It worked for me. I tried Android Studio 3.5.
This worked for me Android Studio 4.0.1:
Close Android Studio.
Navigate to C:\Users[Username].AndroidStudio4.0\config\options
Locate recentProjects.xml and open it.
Scroll down the page you will notice: <option name="lastProjectLocation" value="$USER_HOME$/AndroidStudioProjects" />
Change $USER_HOME$/AndroidStudioProjects to your desired location: /home/USER/AndroidStudioProjects/
Reopen Android studio.
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
I found an easy way:
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" />
Try this:
File\Other Settings\Preferences
for New Projects\Teminal\Start Directory
Top of The Android Studio Title bar its shows the complete file path or LocationLook this image
Source: Stackoverflow.com