Azure虚拟机中Android Studio安装报错求助:管理员用户安装失败
Hey there, let’s work through this Android Studio install issue—even with admin privileges, Windows can throw some unexpected permission-related roadblocks. Here are actionable steps to try:
Verify your installation package integrity
Corrupted installers are a common culprit. Grab the SHA-256 hash from the official Android Studio download page, then open an admin Command Prompt and run this command to check your local file:certutil -hashfile android-studio-<version>.exe SHA256Compare the output to the official hash. If they don’t match, re-download the installer from the official source.
Temporarily disable security software
Windows Defender or third-party antivirus tools might flag parts of the Android Studio installer as suspicious and block them. Disable real-time protection temporarily (don’t forget to re-enable it after installation!) and try running the installer again.Clean up leftover files from previous attempts
If you’ve tried installing before, residual files could be causing conflicts. Delete these folders (make sure to back up any important projects first):C:\Program Files\Android\Android StudioC:\Users\<YourUsername>\.androidC:\Users\<YourUsername>\.gradle
After deleting these, restart your PC and try installing again.
Use silent installation via Command Prompt
Sometimes the GUI installer hits permission bugs that the command-line avoids. Open an admin Command Prompt, navigate to the folder with your installer, and run:android-studio-<version>.exe /SThis runs a silent install, and you’ll see any error messages directly in the prompt which can help narrow down the issue.
Adjust User Account Control (UAC) settings
Even as an admin, overly strict UAC can interfere. Go to Control Panel > User Accounts > Change User Account Control Settings, drag the slider down to "Notify me only when apps try to make changes to my computer (default)" or one level lower, restart your PC, and try the installer again. Remember to set it back to your preferred level after installation.Check disk permissions for the install location
Ensure your target drive (usually C:) has full permissions for the Administrators group:- Right-click the drive in File Explorer and select Properties
- Go to the Security tab, click Edit
- Select the Administrators group, check the box for Full Control under Allow
- Click Apply and OK, then retry the installation
If none of these steps work, share the exact error message you’re getting—even a snippet will help pinpoint the root cause!
内容的提问来源于stack exchange,提问作者harshitpthk

