gpt4 book ai didi

安卓工作室错误 : "You must install the Android Support Repository though the SDK Manager"

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:55:50 25 4
gpt4 key购买 nike

我刚刚在 Android Studio 上初始化了一个项目,它在 0.2.6 版本中运行良好,但在 0.2.7 中,我得到了这个错误:

enter image description here

它会在我的应用程序目录中创建一个文件夹,但不会初始化项目。任何有关此问题的帮助将不胜感激。从 0.1.1 版到 0.2.6 版我都没有遇到任何问题,但是当谈到 0.2.7 版时,事情开始出现问题,就像这样,我什至无法启动一个项目。

最佳答案

在 2.7 更新中我遇到了同样的问题。看起来现在 Android Studio 认为 sdk 位于 android-studio/sdk 自己的文件夹下。

您应该能够使用 android-studio/sdk/tools 下的 android 应用程序来获取缺少的组件(未测试)。

另一种解决方案是修复 sdk 路径(已测试):

关闭所有项目然后拖放到Welcome to Android Studio Dialog

  1. 选择配置 -> 项目默认值 -> 项目结构
  2. 选择 SDK -> Android SDK -> Android SDK 主路径
  3. 将其更新到您之前的 SDK 位置。

关于安卓工作室错误 : "You must install the Android Support Repository though the SDK Manager",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18681155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com