0

I use Cordova for building an Android application. When I execute cordova build android --release command this error is displayed:

Error: please install Android target: "android-22"

My target lists: 8, 15 and 19

When I change target to android-19 or android-15 (in \platforms\android\project.properties) and execute cordova build android --release this error is displayed:

Exception failed for task :CordovaLib:compileRelease/java. And an error in \platforms\android\cordova\node_modules\q\q.js:126 .

ZygD
  • 22,092
  • 39
  • 79
  • 102
Behzad Azizan
  • 261
  • 1
  • 6
  • 14

1 Answers1

0

Go to SDK manager and install the latest version of Android.

enter image description here

And make sure you are also using the latest version of the Android SDK tools. If you've already done these, take a look at this question

Community
  • 1
  • 1
Ojonugwa Jude Ochalifu
  • 26,627
  • 26
  • 120
  • 132