增加插件:
使用到的插件: [org.apache.cordova.splashscreen, org.apache.cordova.splashscreen]
开始准备插件参数......
插件参数准备完成
开始安装插件......
Installing "org.apache.cordova.splashscreen" for android
Installing "org.apache.cordova.splashscreen" for ios
插件安装完成
创建源代码工程:
android应用环境准备:
ios应用环境准备:
生成android应用包:
Running command: E:\wex5\model\Native\鍙屽煄鑳戒紭姹嘰build\src\platforms\android\cordova\build.bat --release
[Error: Please install Android target "android-21".
Hint: Run "android" from your command-line to open the SDK manager.]
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR**** 错误信息: exec returned: 1
****ERROR**** 调用栈:
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at Pack.execTask(Pack.java:51)
at Pack.access$000(Pack.java:25)
at Pack$1.run(Pack.java:95)
at java.lang.Thread.run(Thread.java:745)