我是使用cordova的初学者,我按照创建您的第一个Cordova应用文档中提到的所有步骤进行操作。
我能够满足windows机器上的所有android要求。
但我无法运行 Cordova build android 命令。我收到了以下错误
对于解决方案,我还提到this link,但我的问题没有解决
答案 0 :(得分:1)
您可以通过命令行更新android sdk:
转到文件夹 android-sdk \ tools \ bin 并运行命令:
列出已安装和可用的软件包
sdkmanager --list
安装软件包
sdkmanager packages [options]
例如,要获取adb和fastboot,请安装最新的平台工具:
sdkmanager "platforms;android-25"
<强>用法:强>
sdkmanager --update [<common args>]
sdkmanager --list [<common args>]
sdkmanager [--uninstall] [<common args>] \
[--package_file <package-file>] [<packages>...]
In its first form, installs, or uninstalls, or updates packages.
<package> is a sdk-style path (e.g. "build-tools;23.0.0" or
"platforms;android-23").
<package-file> is a text file where each line is a sdk-style path
of a package to install or uninstall.
Multiple --package_file arguments may be specified in combination
with explicit paths.
In its second form (with --update), currently installed packages are
updated to the latest version.
In its third form, all installed and available packages are printed out.
参考:https://developer.android.com/studio/command-line/sdkmanager.html