Changing Android studio in the SDK, the default path of AVD

For most of the first android download android studio development people, because Android Studio will default to the SDK, AVD downloaded to our C drive, resulting in a large number of memory usage, how to change the path SDK, AVD it?

First attach SDK, AVD default path in window7 the
default path SDK is C: \ Users \ Administrator \ AppData  \ Local \ Android \ Sdk
default path AVD is C: \ Users \ Administrator \ .android \ avd

Some online article writing is "open Android Studio, File-> other Settings-> Default Project Structure"

As shown, change the path of Android SDK location. But I tried to select the D drive folder tips are as follows

A colleague said to own the C drive to the D drive files cut, then you can change the path, I tried really can, but there is a problem, run fluttter doctor will be prompted to Android SDK detects an error, to re-install under SDK.

Also we found a simple method is to "Tools-> SDK Manager", FIG.

Here you can directly modify, modified the folder is automatically copied to the target path.

 

AVD path to change the path in the D drive to create a file folder android_AVD folder, and then configure the ANDROID_SDK_HOME

ANDROID_SDK_HOME path that is the path to save your AVD, after saving, the system will automatically create a new folder in android_AVD .android, and then your .android avd folder to folder, and then modify your configuration avd path to the file, open avd folder, find the .ini file, use Notepad to open, modify the path to your file path

avd.ini.encoding=UTF-8
path=D:\android_AVD\.android\avd\Pixel_2_API_Q.avd
path.rel=avd\Pixel_2_API_Q.avd
target=android-Q

最后重启android studio,大功告成。

 

另外安装Intel x86 Emulator Accelerator (HAXM installer)的问题:

到SDK目录下面安装intelhaxm-android.exe,一般路径在C:\Users\Administrator\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager ,找到intelhaxm-android.exe这个文件安装定并运行, 未出现错误即已解决。

如果在安装过程中出现Intel virtualization technology (vt,vt-x) is not enabled的错误,需要进入的电脑的BIOS中修改,重启电脑,进入BIOS页面(一般在开机时按Del或F2,根据电脑不同,进入方式不同),找到Advanced Mode –> Advanced –> CPU Configuration –> Intel Virtual Technology设置为Enabled(表示开启虚拟化)就可以了。

Guess you like

Origin www.cnblogs.com/geeksongs/p/11241320.html