gpt4 book ai didi

android - 无法移开或删除现有 objective-c :\androidSDK\sdk\tools

转载 作者:行者123 更新时间:2023-11-30 00:04:15 25 4
gpt4 key购买 nike

我无法更新 sdk 工具,我不知道为什么,如果使用此命令“sdkmanager --update”或“android update sdk”,它会给我这样的标题错误:

Warning: An error occured during installation: Failed to move away or delete existing target file: C:\androidSDK\sdk\tools

非常感谢你能帮助我!

最佳答案

1) 将 C:\Users\%username%\AppData\Local\Android\Sdk\tools 文件夹重命名为 tool

2) 在cmd中导航到cd C:\Users\%username%\AppData\Local\Android\Sdk\tool\bin

3) 然后运行sdkmanager --update --verbose,会新建一个tools文件夹

4) 运行flutter doctor --android-licenses

5) 然后点击y

接受android许可

6) flutter doctor 命令将显示以下内容:

Kishore Kumar@Kishore MINGW64 ~$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.228], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 25.0.2)
[√] Android Studio (version 3.1)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected devices (1 available)
• No issues found!

关于android - 无法移开或删除现有 objective-c :\androidSDK\sdk\tools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49306527/

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