ERROR: Error: Please install Android target: "android-22"

Hi,
while im running ionic build i’m getting the below error…
Running command: cmd "/s /c “C:\Users\t\onsenui-sliding-menu\platforms\android\cordova\run.bat --emulator”"
ERROR: Error: Please install Android target: “android-22”.

Hint: Open the SDK manager by running: C:\Users\t\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: cmd: Command failed with exit code 2

Can any one suggest me how to rectify this…

I’ll give you a hint:

Open the Android SDK manager and download the following:

  1. “SDK Platform” for android-22
  2. "Android SDK Platform-tools (latest)
  3. “Android SDK Build-tools” (latest)

Ionic really do try their best to give as much help as possible with their error messages…

Thank You for reply…
but i had already checked those are installed…
that’s what i’m not geeting… everything is installed but its not working…
Any help…

in that case maybe try an
ionic platform remove android
ionic platform add android

Thank You…
i did that its running…
but if i run ionic emulator android or ionic run android it showing me the below error…

Running command: “C:\Program Files\nodejs\node.exe” C:\Users\t\todo\hooks\after_prepare\010_add_platform_class.js C:/Users/t/todo
add to body class: platform-android
Running command: cmd "/s /c “C:\Users\t\todo\platforms\android\cordova\run.bat”"
ANDROID_HOME=C:\Users\t\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
WARNING : No target specified, deploying to emulator
WARNING : no emulator specified, defaulting to Nexus_5_API_23_x86
Waiting for emulator…
Could not launch ‘./qemu/windows-x86_64/qemu-system-i386.exe’: No such file or directory

Any Help or suggestions…

Have you ever had this project working, or is this the first time you are trying to run it?

This is the first time i’m started with mobile app…
Can you suggest me how to correct all these things…

to deploy to emulator you will have to install an android emulator.

to run on a device you will have to install device drivers in windows, and connect your android device

try following a tutorial for setting up android SDK on your computer.