本文介绍了Android Studio 无法启动,失败提示未安装组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了来自 Google 的最新版本的 Android Studio.启动后,它会尝试下载一些软件包.

I have installed Latest version of Android studio from Google. After launching it, it tries to download some packages.

过了一会儿,它显示以下错误.

After a while it shows the following error.

未安装以下 SDK 组件:extra-android-m2repository、tools、addon-google_apis-google-21、android-21、sys-img-x86-addon-google_apis-google-21、source-21、extra-google-m2repository

我无法纠正错误,即使我多次按下重试.

I couldn't rectify the error, even though I pressed Retry multiple times.

任何人都可以提出解决方案!

Anyone can suggest solution!

推荐答案

我在 Windows 7 中遇到了类似的问题,并且在第一次从我的开始程序菜单运行 android-studio 快捷方式时遇到了以下问题.

I had been facing the similar problem in Windows 7 and got the below problems while running the android-studio shortcut from my start programs menu for the first time.

解决方案:以管理员身份运行

问题是由于 Windows C: 驱动器中的写入权限造成的,并且显示了 Access is Denied 消息.以管理员身份运行程序会下载所有必要的组件,现在我可以启动 Android Studio IDE.

The problem was due to the write permission in Windows C: drive and the Access is Denied message is displayed. Running the program as administrator downloads all the necessary components and now I can start Android Studio IDE.

更新:

Android Studio 最新版本(在 Windows 10 中的 1.3.2 中检查)中似乎不存在这些权限问题,并且无需以管理员身份运行"命令即可工作.如果旧/最新版本仍然存在问题,则可能是防火墙和代理问题.在这种情况下,请查看其他答案.

These permission issues doesn't seem to exist in Android Studio latest versions(checked in 1.3.2 in Windows 10) and works without the "Run as administrator" commands. If you still have the problem with the old/latest versions then it might be your firewall and proxy issues. In that case check out the other answers.

这篇关于Android Studio 无法启动,失败提示未安装组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:13