【发布时间】:2021-10-13 07:09:55
【问题描述】:
我已经解决这个问题几个小时了,并且尝试了所有方法,但我无法克服这个障碍。
我打算使用 Apache Cordova 创建一个 APK,同时尝试执行
sdkmanager --list
我得到这个输出:
C:\Windows\system32>sdkmanager --list
Warning: Failed to download any source lists!
Warning: IO exception while downloading manifest
Warning: IO exception while downloading manifest
Warning: Still waiting for package manifests to be fetched remotely.
[=======================================] 100% Computing updates...
以及获取构建工具:
C:\Windows\system32>sdkmanager "build-tools;29.0.0"
Warning: Failed to download any source lists!
Warning: IO exception while downloading manifest
Warning: IO exception while downloading manifest
Warning: Still waiting for package manifests to be fetched remotely.
Warning: Failed to find package 'build-tools;29.0.0'
[=== ] 10% Computing updates...
C:\Windows\system32>
我尝试过的事情:
- 禁用防火墙和/或防病毒软件
- 以管理员身份运行 cmd 和 PowerShell
- 重新启动系统并删除缓存
- 也运行了一些代理服务器命令,但没有成功
- 从 appdata 中删除 .android 文件(反正不存在)
C:\Windows\system32>sdkmanager --version
5.0
环境变量工作正常,之前没有安装 Android Studio。
提前致谢
【问题讨论】:
标签: android android-studio cordova android-sdk-tools platform-tools