Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install android targets (SDKs)?

I am new to cordova developments. Before I getting started with cordova i installed Android SDK from the command line. And JDK and Apache ant also already installed. According to the cordova documention i checked the cordova requirements as follows with cordova requirements command. And it shows android target is not installed. How do i fix this? without this, Is that would cause to furthuer develoment with cordova.

C:\Users\Nav\Documents\cordova_dev\cordova\hello>cordova requirements

    Requirements check results for android:
    Java JDK: installed 1.8.0
    Android SDK: installed true
    Android target: not installed
    No android targets (SDKs) installed!
    Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-2.14.1\bin\gradle
    Error: Some of requirements check failed
like image 836
Navi.dev1 Avatar asked Aug 01 '17 07:08

Navi.dev1


1 Answers

Try installing a target with sdkmanager on the command line.
e.g.

sdkmanager "platforms;android-26"

and then trying cordova requirements again.
Hopefully you should then get the message:

Android target: installed android-26
like image 149
pelms Avatar answered Oct 16 '22 06:10

pelms