Windows环境下如何迁移.AndroidStudio3.1文件夹?配置路径存疑
How to Migrate Android Studio 3.1's .AndroidStudio3.1 Folder to E Drive (Windows)
Hey there, I know how frustrating it is when existing solutions don’t click— let’s walk through this migration step by step, no confusing jargon left hanging.
Step 1: Prep Work
- First, completely close Android Studio— make sure it’s not running in the background (check your system tray to be safe).
- Locate your original
.AndroidStudio3.1folder atC:\Users\NAME\.AndroidStudio3.1(replaceNAMEwith your Windows username). - Copy this entire folder to your desired E drive location, for example
E:\AndroidStudio\.AndroidStudio3.1. Don’t cut it yet— we’ll confirm everything works before deleting the original.
Step 2: Modify Android Studio's VM Options
The idea.config.path and idea.system.path are Java VM parameters that tell Android Studio where to look for its core configuration and system files. Here’s exactly how to set them:
- Navigate to your Android Studio installation’s
binfolder. By default, this isC:\Program Files\Android\Android Studio\bin. - Find the appropriate
.vmoptionsfile:- Use
studio64.exe.vmoptionsif you’re on a 64-bit Windows (most modern laptops are). - Use
studio.exe.vmoptionsfor 32-bit systems.
- Use
- Right-click the file and open it with a text editor like Notepad or VS Code (you might need to run the editor as Administrator to save changes).
- Add these two lines at the bottom of the file, replacing the path with your actual E drive location:
Note: Use forward slashes (-Didea.config.path=E:/AndroidStudio/.AndroidStudio3.1/config -Didea.system.path=E:/AndroidStudio/.AndroidStudio3.1/system/) or double backslashes (\\) in the path— single backslashes will cause errors.
What Do These Parameters Mean?
idea.config.path: Points to the folder where Android Studio stores your custom settings, installed plugins, UI layouts, and keymaps (this matches theconfigsubfolder in your original.AndroidStudio3.1directory).idea.system.path: Points to the folder for cached data, logs, build outputs, and other runtime files (matches thesystemsubfolder in the original directory).
Step 3: Test and Clean Up
- Launch Android Studio. Check if your projects load correctly, plugins are present, and all your settings are intact.
- If everything works as expected, you can safely delete the original
.AndroidStudio3.1folder fromC:\Users\NAME\to free up space on your C drive.
Troubleshooting Tips
- If Android Studio fails to start, double-check the paths in the
.vmoptionsfile for typos. - Ensure you have write permissions for the E drive folder you’re using.
- If you still run into issues, verify that you edited the correct
.vmoptionsfile (64-bit vs 32-bit).
内容的提问来源于stack exchange,提问作者user9682247
相关产品推荐
相关产品推荐

