Android Studio 错误:“您必须通过 SDK 管理器安装 Android 支持存储库"; [英] Android Studio Error: "You must install the Android Support Repository though the SDK Manager"
问题描述
我刚刚在 Android Studio 上初始化了一个项目,它在 0.2.6 版本中运行良好,但在 0.2.7 中,我收到此错误:
I just initialised a project on Android Studio, and it was working fine in version 0.2.6, but in 0.2.7, I get this error:
它会在我的 Applications 目录中创建一个文件夹,但它不会初始化项目.任何有关此问题的帮助将不胜感激.我从 0.1.1 版本到 0.2.6 版本都没有问题,但是到了 0.2.7 时,事情开始出现问题,就像这样,我什至无法启动项目.
It creates a folder inside my Applications directory, but it does not initialize the project. Any help regarding this problem would be appreciated. I get no problems with version 0.1.1 through version 0.2.6, but when it comes to 0.2.7, things start to get problematic, like this and I can't even start a project.
推荐答案
在 2.7 更新中,我遇到了同样的问题.看起来现在 Android Studio 认为 sdk
位于 android-studio/sdk
自己的文件夹下.
With 2.7 update I got the same issue. It looks like now Android Studio thinks sdk
lays in under its own folder at android-studio/sdk
.
您应该能够使用 android-studio/sdk/tools
下的 android
应用程序来获取丢失的组件(未测试).
You should be able to use android
app under android-studio/sdk/tools
to get missing components (not tested).
另一种解决方案是修复 sdk
路径(已测试):
Another solution would be to fix sdk
path (tested):
关闭所有项目,然后进入Welcome to Android Studio Dialog
Close any projects then drop to Welcome to Android Studio Dialog
- 选择配置 -> 项目默认值 -> 项目结构
- 选择 SDK -> Android SDK -> Android SDK Home 路径
- 将其更新到您之前的 sdk 位置.
这篇关于Android Studio 错误:“您必须通过 SDK 管理器安装 Android 支持存储库";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!