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.

๐Ÿ“Š Where do you usually store Android Studio projects?
In a standard folder
On a separate disk
In cloud storage
Other option

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:

  1. Open Android Studio and go to File โ†’ Settings (macOS: Android Studio โ†’ Preferences).
  2. Select a section Appearance & Behavior โ†’ System Settings โ†’ Project Opening.
  3. In the Default Project Directory field, specify a new folder (for example, D:\Projects\Android).
  4. Click OK and 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

Done: 0 / 4
โš ๏ธ 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 do commit or push errors 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 caches inside .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:

  1. Default folder: AndroidStudioProjects (see the paths in the first section).
  2. Recent files: B Android Studio Open File โ†’ Open Recent - perhaps the project is simply not displayed in the main list.
  3. 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.gradle and build.gradle.
  • ๐Ÿ“‚ Presence of folder .idea (it contains configurations Android Studio).
  • ๐Ÿ”„ Status Git-repository (if used): run git status in 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:

  1. Copy the project folder entirely (including hidden files like .git or .idea).
  2. Export settings (if necessary): File โ†’ Manage IDE Settings โ†’ Export Settings.
  3. Move the SDK (optional): if the new PC does not have Android SDK, copy the folder Sdk (see the table above for paths).
  4. 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 Sdk remove unnecessary platforms (for example, android-28if you only use android-33).
  • ๐Ÿ–ฅ๏ธ Logs and dumps: Folders log and caches in configurations Android Studio.
  • ๐Ÿ—ƒ๏ธ Unused projects: Folder AndroidStudioProjects (make a backup copy first!).

To clear the cache directly from Android Studio:

  1. Go to File โ†’ Invalidate Caches / Restart.
  2. Select Invalidate and Restart.

For deep cleaning, use terminal:

# On macOS/Linux

rm -rf ~/.gradle/caches/

On Windows (in PowerShell)

Remove-Item -Recurse -Force "$env:USERPROFILE\.gradle\caches"

โš ๏ธ Attention: Do not delete the folder Sdk\platform-tools โ€”it contains critical tools like adb and fastboot. 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:

  1. Clean project: Build โ†’ Clean Project.
  2. Rebuild: Build โ†’ Rebuild Project.
  3. 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:

  1. Clone the repository again: git clone .
  2. 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 Machine on 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 AndroidStudioProjects has 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:

  1. Copy folder Sdk to a new location (for example, D:\Android\Sdk).
  2. Open Android Studio and go to File โ†’ Project Structure.
  3. In the section SDK Location specify the new path to the SDK.
  4. Click Apply and wait for Android Studio to update the configuration.

If errors occur after the transfer, check the environment variables:

  • On Windows: update the variable ANDROID_HOME on Control Panel โ†’ System โ†’ Advanced system settings โ†’ Variables Wednesday.
  • On macOS/Linux: add to ~/.bashrc or ~/.zshrc the line:
export ANDROID_HOME=/new/path/to/Sdk