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 .
Go to SDK manager and install the latest version of Android.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.