Android Studio: Default project directory

后端 未结 10 1852
既然无缘
既然无缘 2020-11-30 01:35

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 he

相关标签:
10条回答
  • 2020-11-30 02:13

    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 讨论(0)
  • 2020-11-30 02:16

    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.

    0 讨论(0)
  • 2020-11-30 02:17

    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.

    0 讨论(0)
  • 2020-11-30 02:17
    • This worked for me :- -> Go to settings -> Type system setting in search bar -> Select your location -> Press Apply
    0 讨论(0)
提交回复
热议问题