将android studio安装到D盘
-
双击exe安装,勾选
-
指定到D盘
-
复选框为[不创建快捷方式],点击[Install]
-
安装完成启动
-
不导入设置
-
不发送信息
-
取消
-
下一步
-
自定义设置
-
设置主题
-
指定sdk下载位置
-
下一步
-
下一步
-
同意
-
开始下载
-
下载完成
点击查看详情
Preparing "Install Google APIs Intel x86_64 Atom System Image API 35 (revision 6)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86_64-35_r06.zip
"Install Google APIs Intel x86_64 Atom System Image API 35 (revision 6)" ready.
Installing Google APIs Intel x86_64 Atom System Image in D:\Android\Sdk\system-images\android-35\google_apis\x86_64
"Install Google APIs Intel x86_64 Atom System Image API 35 (revision 6)" complete.
"Install Google APIs Intel x86_64 Atom System Image API 35 (revision 6)" finished.
Preparing "Install Android Emulator hypervisor driver (installer) v.2.2.0".
Downloading https://dl.google.com/android/repository/aehd-windows_v2.2.zip
"Install Android Emulator hypervisor driver (installer) v.2.2.0" ready.
Installing Android Emulator hypervisor driver (installer) in D:\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver
"Install Android Emulator hypervisor driver (installer) v.2.2.0" complete.
"Install Android Emulator hypervisor driver (installer) v.2.2.0" finished.
Preparing "Install Sources for Android 35 v.1".
Downloading https://dl.google.com/android/repository/source-35_r01.zip
"Install Sources for Android 35 v.1" ready.
Installing Sources for Android 35 in D:\Android\Sdk\sources\android-35
"Install Sources for Android 35 v.1" complete.
"Install Sources for Android 35 v.1" finished.
Preparing "Install Android SDK Platform 35 (revision 1)".
Downloading https://dl.google.com/android/repository/platform-35_r01.zip
"Install Android SDK Platform 35 (revision 1)" ready.
Installing Android SDK Platform 35 in D:\Android\Sdk\platforms\android-35
"Install Android SDK Platform 35 (revision 1)" complete.
"Install Android SDK Platform 35 (revision 1)" finished.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
Downloading https://dl.google.com/android/repository/build-tools_r35_windows.zip
"Install Android SDK Build-Tools 35 v.35.0.0" ready.
Installing Android SDK Build-Tools 35 in D:\Android\Sdk\build-tools\35.0.0
"Install Android SDK Build-Tools 35 v.35.0.0" complete.
"Install Android SDK Build-Tools 35 v.35.0.0" finished.
Preparing "Install Android SDK Platform-Tools v.35.0.1".
Downloading https://dl.google.com/android/repository/platform-tools_r35.0.1-win.zip
"Install Android SDK Platform-Tools v.35.0.1" ready.
Installing Android SDK Platform-Tools in D:\Android\Sdk\platform-tools
"Install Android SDK Platform-Tools v.35.0.1" complete.
"Install Android SDK Platform-Tools v.35.0.1" finished.
Preparing "Install Android Emulator v.34.2.15".
Downloading https://dl.google.com/android/repository/emulator-windows_x64-11906825.zip
"Install Android Emulator v.34.2.15" ready.
Installing Android Emulator in D:\Android\Sdk\emulator
"Install Android Emulator v.34.2.15" complete.
"Install Android Emulator v.34.2.15" finished.
Parsing D:\Android\Sdk\build-tools\35.0.0\package.xml
Parsing D:\Android\Sdk\emulator\package.xml
Parsing D:\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver\package.xml
Parsing D:\Android\Sdk\platform-tools\package.xml
Parsing D:\Android\Sdk\platforms\android-35\package.xml
Parsing D:\Android\Sdk\sources\android-35\package.xml
Parsing D:\Android\Sdk\system-images\android-35\google_apis\x86_64\package.xml
Android SDK is up to date.
Running Android Emulator hypervisor driver installer
Android Emulator hypervisor driver installation failed. To install Android Emulator hypervisor driver follow the instructions found at: https://github.com/google/android-emulator-hypervisor-driver
Creating Android virtual device
Android virtual device Pixel_3a_API_35_extension_level_13_x86_64 was successfully created
-
确认sdk下载目录
-
勾选后可下载需要版本的sdk
-
点击Apply下载
-
查看文件夹
-
设置环境变量GRADLE_USER_HOME=D:.gradle,指定本地gradle仓库
-
设置avd虚拟环境
-
先删除已有的虚拟环境
-
将C:\Users\dogle.android移动到自己新建的文件夹D:\Android\AVDs
-
设置环境变量ANDROID_SDK_HOME=D:\Android\AVDs,
需要重启电脑生效
-
导入项目,下载依赖
-
构建完成
-
选择jdk
-
创建虚拟环境
-
选择尺寸
-
选择android版本并下载
-
下载完成
-
查看系统映像
-
下一步
-
完成
-
查看文件夹
-
启动
-
开机
-
运行软件
-
使用编辑器打开如下文件
-
修改如下
# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes: C:/dir1/dir2.
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.AndroidStudio/config
idea.config.path=D:/Android/AndroidStudioConfig/config <-----------------------------
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.AndroidStudio/system
idea.system.path=D:/Android/AndroidStudioConfig/system <-----------------------------
-
新建文件夹
-
将C:\Users\dogle\AppData\Roaming\Google\AndroidStudio2022.3目录下的内容剪切到D:/Android/AndroidStudioConfig/config
-
将C:\Users\dogle\AppData\Local\Google\AndroidStudio2022.3目录下的内容剪切到idea.system.path=D:/Android/AndroidStudioConfig/system
-
重新启动Android Studio,选择新的配置文件路径