小编veo*_*eor的帖子

Windows上的Ionic:安装了Android SDK.仍然得到"错误:请安装Android目标:"android-22"

我设法打破了以前工作的Ionic环境版本.例如:我下载演示项目"sidemenu"并运行"ionic platform add android"没有任何问题.当我尝试运行"离子构建"时,我收到以下消息:

$ ionic build
Running command: "c:\Program Files\nodejs\node.exe" h:\git\Absolut\hooks\after_p
repare\010_add_platform_class.js h:/git/myapp add to body class: platform-android
Running command: cmd "/s /c "h:\git\Absolut\platforms\android\cordova\build.bat"
"
[Error: Please install Android target: "android-22".

Hint: Open the SDK manager by running: c:\Users\nicsj\AppData\Local\Android\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 building one of the platforms: Error: cmd: Command failed with exit code 2

You may not have the required environment or …
Run Code Online (Sandbox Code Playgroud)

android cordova ionic-framework ionic

14
推荐指数
2
解决办法
3万
查看次数

标签 统计

android ×1

cordova ×1

ionic ×1

ionic-framework ×1