Solution to the virtual machine startup failure after AndroidStudio installation

First of all, after I install it, the virtual machine keeps reporting an error: I The emulator process for AVD Pixel 4 API 24 2 was killed
checked a lot of information on the Internet, it may be that the BIOS virtual environment is not turned on, etc., but before checking these problems, please check your current windows user correspondence Is your user folder in Chinese! ! ! !
To tell you directly, if the user folder corresponding to the user who currently installs AndroidStudio is in Chinese, you will never be able to start AVD. You need to change the name of the current user's folder to English, as follows:
WIN10 Home Edition Username Modification
The reason for the change is
to fill in the Chinese name when registering the Microsoft account. When Window10 is installed or upgraded online, Microsoft will default to the Microsoft account used by the user to log in to Windows. When the user logs in with the Microsoft account, Win10 will Create a user's folder with this Chinese name. For the user name folder in Chinese, there is basically no problem in normal use, but there are a few software installation or use processes, the save path does not support the Chinese path, so an error is reported and it cannot be used. Need to change the user folder name to English.

The Administrator account of Win10 is hidden and closed by default, because the account has extremely high authority, and there is a great risk of being used by criminals. But if you want to use the account in some special circumstances, you need to manually open it, and it is best to close it in time after use.


Steps for the administrator account Administrator:
Operate as a local user.
Enter CMD in the Cortana search bar, and "Run as administrator"
. Enter the following command in the command prompt and press Enter: net user administrator /active:yes
At this time, the administrator account is turned on , In the start menu, click on the user profile picture to see the switching options.
Log out of the local user. After
clicking Administrator, it will switch to the login screen. At this time, click Login to
log in, and then click "File Explorer" on the taskbar.
Write the picture description here.
Enter the C drive, the system drive, where the user folder is located.
You can see the folder name of the Chinese user, and you can open it to check whether it is the user's data.
After selecting, press F2, or right-click-rename. Change the Chinese name to the English name.
Write the picture description
here Write the picture description here

Windows key + R to open the operation, enter regedit, click OK to open the Windows registry manager.
Write picture description here

Expand HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Profilelist, the folder under Profilelist corresponds to the user in the system, and the ProfileImagePath value in the folder refers to the address of each user folder, click to view one by one, and find the Chinese name user The corresponding ProfileImagePath value.
Write the picture description here.
Modify the value of ProfileImagePath, and change the address to the English folder name.
It is consistent with the folder name of the C drive. Log out again to complete the change of the login user folder name.
Write the picture description here.
Log in to the local account, run the command prompt again as an administrator, enter the following command and press Enter: net user administrator /active:no. Close the administrator account.

Guess you like

Origin blog.csdn.net/qq_40596572/article/details/109873260