[英]Error while Cordova Run Android Platform
当我尝试以下命令: cordova run android
,此错误显示:
> Running command: cmd "/s /c
> "E:\Build\NodeJS\Coba\jimmy\platforms\android\cordova\run.bat"" ERROR:
> Error: Please install Android target: "android-22".
>
> Hint: Open the SDK manager by running:
> C:\Users\Jimmy\AppData\Local\Android\sdk\tools\android.BAT You will
> require:
> 1. "SDK Platform" for android-22
> 2. "Android SDK Platform-tools (latest)
> 3. "Android SDK Build-tools" (latest) ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 2 You may not
> have the required environment or OS to run this project
我遵循了提示,但是出现了同样的错误。 我该怎么办?
如果您确实安装了android-22
但cordova
找不到,则您可能错过了将android SDK平台和工具二进制文件添加到PATH
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.