Sdk error in NatveScript



when i run tns run android i got this:
{cannot find a compatible android sdk for compilation. to be able to build for android, install android 22 or later}
please how do i get android sdk setup to run android emulator.


The easiest way is to update the SDK from the SDK Manager in android studio. (

If you have update the SDK to later version the 22 or you still get the same error you can try to manually set the ANDROID_HOME environment variable -
set ANDROID_HOME=C:\ installation location \android-sdk

I hope this will help :slight_smile:


This command help me :
tns setup
It did everything automatically including setting Android and JAVA HOME environment variable.
Then I downloaded android sdk tools using cod.