Working with Android Studio and canโt find where your projects have gone? Or want to move them to another drive, but don't know where they are stored? This problem is familiar to many developers - especially those who are just starting to master the development environment. The fact is that Android Studio by default saves projects in hidden folders, the path to which depends on the operating system. And if you did not change the settings during installation, then the search can turn into a real quest.
In this article we will analyze not only the standard paths for storing projects on Windows, macOS i Linux, but also show how to change them and restore lost ones files or transfer to another medium. You'll also learn where the cache, settings, and project dependencies are storedโthis will be useful if you need to free up disk space or troubleshoot build errors. Don't miss hidden folders with Gradle and SDK settingswhich often take up tens of gigabytes, but go unnoticed!
Standard paths for storing projects in Android Studio
Default Android Studio saves new projects in a folder, the path to which depends on your operating system. These paths are not always obvious, especially for beginners. Here's where to look:
- ๐ช Windows:
C:\Users\\AndroidStudioProjects - ๐ macOS:
/Users//AndroidStudioProjects - ๐ง Linux:
/home//AndroidStudioProjects
If you do not find the folder AndroidStudioProjects, check if it is hidden. On Windows enable the display of hidden files in Explorer โ View โ Hidden elements. On macOS i Linux use the command in the terminal:
ls -la ~/ | grep AndroidStudioProjects
Important: if you installed Android Studio not through an official installer (for example, via Snap or Flatpak on Linux), the path may differ. In this case, check the settings of the development environment itself - more on this in the next section.
How to change the path for saving new projects
If you are not satisfied with the standard location, the path for new projects can be changed directly in the settings Android Studio. To do this:
- Open Android Studio and go to
File โ Settings(macOS:Android Studio โ Preferences). - Select a section
Appearance & Behavior โ System Settings โ Project Opening. - In the
Default Project Directoryfield, specify a new folder (for example,D:\Projects\Android). - Click
OKand restart Android Studiofor the changes to take effect.
Now all new projects will be created along the specified path. However old projects will remain in the same place they must be transferred manually in order not to lose connection with the version control system (for example, Git), copy the entire project folder, not just the code files.
โ๏ธ Moving the project to a new folder
โ ๏ธ Attention: If you use Git or another VCS, after transferring the project, do not forget to update the path to repository in the version control system settings. Otherwise, when you try to docommitorpusherrors may occur.
Where the settings, cache and project dependencies are stored
The projects themselves are just the tip of the iceberg. Android Studio creates many service files that take up disk space, but are not always visible in the main project folder. Here's where to look:
| File type | Path on Windows | Path on macOS/Linux | Destination |
|---|---|---|---|
| Gradle cache | C:\Users\\.gradle\caches |
~/Library/Caches/gradle (macOS)~/.gradle/caches (Linux) |
Stores downloaded dependencies and speeds up the build |
| SDK Android | C:\Users\\AppData\Local\Android\Sdk |
~/Library/Android/sdk (macOS)~/Android/Sdk (Linux) |
Platforms, tools and emulators |
| IDE Settings | C:\Users\\.AndroidStudio\config |
~/Library/Preferences/AndroidStudio (macOS)~/.config/Google/AndroidStudio (Linux) |
Configurations, plugins, templates |
| Logs and dumps | C:\Users\\.AndroidStudio\log |
~/Library/Logs/Google/AndroidStudio (macOS)~/.cache/Google/AndroidStudio/log (Linux) |
Error logs and debugging information |
The folder .gradle can take up up to 10โ20 GB, especially if you work with many projects. It can be safely cleared, but the dependencies will have to be downloaded again the next time you build. To clean:
- ๐งน Delete the folder
cachesinside.gradle. - ๐ In Android Studio execute
File โ Invalidate Caches / Restart. - ๐ฆ If you use Gradle via the command line, run
gradle --refresh-dependencies.
โ ๏ธ Attention: Do not delete the folder .gradle/wrapper โit contains the files necessary for work Gradle Wrapper. Without it, the project may stop building.
To reduce the size of the Gradle cache, add a gradle.properties line to the file org.gradle.caching=true. This will enable task-level caching and speed up rebuilds.
How to find an orphaned Android Studio project
If project Suddenly has disappeared from your recent list Android Studio, don't panic. First check:
- Default folder:
AndroidStudioProjects(see the paths in the first section). - Recent files: B Android Studio Open
File โ Open Recent- perhaps the project is simply not displayed in the main list. - Search by disk: Use a search by project name or file
build.gradle.
If the project is not found, check trash โthe folder may have been deleted by mistake. It's also worth looking at Windows also worth a look at C:\Users\\AppData\Local\Temp - sometimes temporary project files remain there after failures.
If the project opens but is not assembled, check:
- ๐ง The paths in
settings.gradleandbuild.gradle. - ๐ Presence of folder
.idea(it contains configurations Android Studio). - ๐ Status Git-repository (if used): run
git statusin terminal.
What to do if the project does not open due to the error "Unregistered VCS root"
Open the project folder manually via File โ Open, then go to File โ Settings โ Version Control and add the project root folder as a new VCS root.
Transferring projects to another drive or computer
If you need to transfer a project to another drive or computer, follow this algorithm:
- Copy the project folder entirely (including hidden files like
.gitor.idea). - Export settings (if necessary):
File โ Manage IDE Settings โ Export Settings. - Move the SDK (optional): if the new PC does not have Android SDK, copy the folder
Sdk(see the table above for paths). - Update the paths to Android Studio on the new device:
File โ Project Structure โ SDK Location
If the project uses Git, after the transfer, run:
git config --global core.autocrlf true # For Windows
git config --global core.autocrlf input # For macOS/Linux
This will prevent problems with line endings in files.
When transferring the project to another computer, be sure to check version Gradle and Android Gradle Plugin in the file build.gradle. If they do not match those installed on the new PC, the project will not build.
How to free up space by deleting unnecessary files Android Studio
Android Studio and its components can take up dozens gigabyte - especially if you havenโt cleared the cache for a long time. Hereโs what you can safely delete:
- ๐๏ธ Gradle cache: Folder
.gradle/caches(see table above). - ๐ Old SDK versions: In the folder
Sdkremove unnecessary platforms (for example,android-28if you only useandroid-33). - ๐ฅ๏ธ Logs and dumps: Folders
logandcachesin configurations Android Studio. - ๐๏ธ Unused projects: Folder
AndroidStudioProjects(make a backup copy first!).
To clear the cache directly from Android Studio:
- Go to
File โ Invalidate Caches / Restart. - Select
Invalidate and Restart.
For deep cleaning, use terminal:
# On macOS/Linuxrm -rf ~/.gradle/caches/
On Windows (in PowerShell)
Remove-Item -Recurse -Force "$env:USERPROFILE\.gradle\caches"
โ ๏ธ Attention: Do not delete the folderSdk\platform-toolsโit contains critical tools likeadbandfastboot. Without them, you will not be able to work with the emulator or connected devices.
Common problems and their solutions
When working with projects in Android Studio typical errors related to paths may occur storage. Here are the most common ones and how to fix them:
| Problem | Cause | Solution |
|---|---|---|
| Project does not open after transfer | Invalid paths in settings.gradle or the folder is missing .idea |
Check the paths in settings.gradle and recreate the project files: File โ Sync Project with Gradle Files |
| Error "SDK not found" | The path to the SDK has changed or the folder has been deleted | Update the path in File โ Project Structure โ SDK Location or reinstall the SDK |
| Gradle does not download dependencies | Internet problems or cache is corrupted | Delete .gradle/caches and execute gradle --refresh-dependencies |
| The project is not displayed in "Recent Projects" | The configuration file is damaged | Delete ~/.AndroidStudio/config/options/recentProjects.xml (path for macOS/Linux) |
If build errors occur after transferring the project, try:
- Clean project:
Build โ Clean Project. - Rebuild:
Build โ Rebuild Project. - Update dependencies:
File โ Sync Project with Gradle Files.
If the problem is not solved, check the file gradle.properties for the presence of custom paths (for example, android.sdk.path) and update them if necessary.
FAQ: Answers to frequently asked questions
Is it possible to store projects on an external HDD or SSD?
Yes, but please note:
- ๐ An external drive must be connected every time you start Android Studio.
- โก USB 2.0 may slow down the build due to low speed read/write.
- ๐ When you disconnect the disk, projects will become inaccessible (the "Project not found" error will appear).
We recommend using internal SSD or network storage (for example, NAS) with high access speed.
How to restore the project if the AndroidStudioProjects folder was deleted?
If the folder was deleted, but you used Git:
- Clone the repository again:
git clone. - Open the project in Android Studio via
File โ Open.
If Git has not been used:
- ๐ Check the recycle bin.
- ๐ ๏ธ Use file recovery apps (for example, Recuva or TestDisk).
- ๐ Look at the backups (if automatic saving to the cloud or
Time Machineon macOS is enabled).
Why does Android Studio create projects not in the standard folder?
This can happen for several reasons:
- ๐ง You manually specified a different path when creating the project.
- ๐ The folder
AndroidStudioProjectshas been renamed or deleted. - ๐ฅ๏ธ You are using a portable version Android Studio (for example, from a flash drive), which saves projects next to the executable file.
- ๐ The IDE settings have been reset or damaged.
To return the default behavior, check the path in File โ Settings โ Appearance & Behavior โ System Settings โ Project Opening.
Is it possible to synchronize projects between several computers?
Yes, the following are suitable for this:
- ๐ฅ๏ธ Cloud storage: Google Drive, Dropbox or OneDrive (but avoid synchronizing the folder
.gradle- this can lead to conflicts). - ๐ Git repositories: GitHub, GitLab or Bitbucket (ideal for team work).
- ๐ Symbolic links: Create a symlink to the project folder so that it appears in standard location, but was physically stored in the cloud.
When synchronizing via the cloud exclude from download:
- Folders
.gradle,.idea,build. - Files
local.properties(contains local paths).
How to change the SDK location without reinstalling Android Studio?
To move Android SDK to another drive:
- Copy folder
Sdkto a new location (for example,D:\Android\Sdk). - Open Android Studio and go to
File โ Project Structure. - In the section
SDK Locationspecify the new path to the SDK. - Click
Applyand wait for Android Studio to update the configuration.
If errors occur after the transfer, check the environment variables:
- On Windows: update the variable
ANDROID_HOMEonControl Panel โ System โ Advanced system settings โ Variables Wednesday. - On macOS/Linux: add to
~/.bashrcor~/.zshrcthe line:
export ANDROID_HOME=/new/path/to/Sdk