Cordova : [Error: Please install Android target: “android-21”

后端 未结 9 663
梦毁少年i
梦毁少年i 2020-12-04 11:50

I just updated cordova + ionic in my app, after that i installed successfully Android-SDK v22 via Android SDK manager.

But after the running command:



        
9条回答
  •  离开以前
    2020-12-04 12:38

    Follow these steps.
    1) Type android on command line.(Make sure ANDROID_HOME and PATH are set properly)
    2) Select API 21 from the populated list.
    3) Click install packages.
    4) Type android avd on command line.
    5) Set API level and other config.
    6) Now type ionic build android.

提交回复
热议问题