Problem building project on Android

0

I'm trying to build on a project done in Ionic for android, but it gets me the following error:

cordova build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\Lucas\Documents\Projects\primeiro\hooks\after_prepare0_add_platform_class.js C:\Users\Lucas\Documents\Projects\primeiro
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\Lucas\Documents\Projects\primeiro\platforms\android\cordova\build.bat""
[Error: Please install Android target: "android-22".

Hint: Open the SDK manager by running: C:\Users\Lucas\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 OS to build this project
**Error: cmd: Command failed with exit code 2**

The Android SDK is installed, it follows an image of it:

I can not understand why this happens. I already installed the sdk, set the variable ANDROID_HOME and PATH, and even then it continues in the same message. Thank you in advance.

    
asked by anonymous 26.12.2015 / 02:07

1 answer

1

For the description of the error, the API level 22 (Android 5.1.1) download is missing.

    
26.12.2015 / 02:11