|
下载环境解压后 ,直接打包样例 比如 外卖 相关的错误信息如下:
开始......
保存配置信息:
编译UI资源:
清除编译环境:
复制模版工程:
复制工程:
复制插件:
加密UI资源:
更新工程信息:
增加插件:
使用到的插件: [com.justep.cordova.plugin.weixin.v3, cn.jpush.phonegap.JPushPlugin, com.justep.cordova.plugin.alipay, org.apache.cordova.splashscreen, com.justep.cordova.plugin.baidulocation, org.apache.cordova.geolocation, cn.jpush.phonegap.JPushPlugin, com.justep.cordova.plugin.alipay, com.justep.cordova.plugin.weixin.v3, org.apache.cordova.device]
开始准备插件参数......
插件 "com.justep.cordova.plugin.weixin.v3" 参数如下:
weixin_partner_id:1260525001
weixin_appid:wx7f1cf94ef1ea9163
weixin_api_key:C6B64B44003000013DD711AF15089430
插件 "cn.jpush.phonegap.JPushPlugin" 参数如下:
jpush_appkey:07ffdfc4ffb965d80480a40c
插件 "com.justep.cordova.plugin.alipay" 参数如下:
rsa_public:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB
rsa_private:MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAM3NsYcFbce3omzhiXY1Mr8nkxuHkpVFky9JBb+vnLzje+mjZIxbHDGIU//3c88H5F6CO6CPNMa036QJ9nhS6Ea7xmEGQ2JxY0JMM2bnQxhRtwwe1nV67boFzkjrOWD1loThzK3pgVkb6D6gLqANXcPSe3JAqrvouNUYvK/+75O1AgMBAAECgYBy3IdlZUlE+x+DB0lyGPTOrSa0abEM8LzZ2jaEKl4fKhOBbXjzwPH2TzEaniAbfzsc6DChRuvcrxxWcF0IALWzqyJdGNxZjlhwyVhKc4BJnn90AUXohvB83AFd2+cHurHkAE8sEO8ihDsSOon0YpKKkA/haQ8RKshTCO8RZIlugQJBAP2WkR3BbPzgHZxKR8u0woe0ZzIkUCa/+dMr8XELE6ZBj1w3uPTq4ePHto5W9MLwzN3p3lN+WcUkAM/BdzlbUyECQQDPwsf4SYCjV5hTNY7sj1sqcO4O8Ti7HnINHkefb90TsIrQjaBYNYxeEjj028yLxKkNkNUoLZQekt0jDast24IVAkBDvM5yplJYkf0W3HilH1m/Kh9Os4h9cVZoZBqQWaccB/MlbPUI5x0D3TsUdoHW+L+gn3H115BfKqjU1hbkyVJBAkEAryckVTMKayrG9aeahd7Z2e75E8nTrRUey+ZyNX0mYZodfXNY8eS7IPe14uCHEnJKn3Ax9DxwulHQcuPsI64CfQJBAPYgBMhCX6HXpLTKUuIID1dy1ENZyEEUZCouQsuPYwirOO6z4NIi8wSa98wgM0/2NJrVs1W2/l2fn8xVycd4Ykk=
partner:2088811446024912
alipay_scheme:alipay20888114460249121
插件参数准备完成
开始安装插件......
Installing "com.justep.cordova.plugin.weixin.v3" for android
F:\webx5\model\Native\澶栧崠\build\src\platforms\android
F:\webx5\model\Native\澶栧崠\build\src\platforms\android
Installing "com.justep.cordova.plugin.weixin.v3" for ios
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Installing "cn.jpush.phonegap.JPushPlugin" for android
cordova version check failed ("F:\webx5\model\Native\澶栧崠\build\src\platforms\android\cordova\version"), continuing anyways.
Installing "cn.jpush.phonegap.JPushPlugin" for ios
cordova version check failed ("F:\webx5\model\Native\澶栧崠\build\src\platforms\ios\cordova\version"), continuing anyways.
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Installing "com.justep.cordova.plugin.alipay" for android
cordova version check failed ("F:\webx5\model\Native\澶栧崠\build\src\platforms\android\cordova\version"), continuing anyways.
Installing "com.justep.cordova.plugin.alipay" for ios
cordova version check failed ("F:\webx5\model\Native\澶栧崠\build\src\platforms\ios\cordova\version"), continuing anyways.
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Installing "org.apache.cordova.splashscreen" for android
Installing "org.apache.cordova.splashscreen" for ios
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Installing "com.justep.cordova.plugin.baidulocation" for android
Installing "com.justep.cordova.plugin.baidulocation" for ios
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Installing "org.apache.cordova.geolocation" for android
Installing "org.apache.cordova.geolocation" for ios
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.device" for ios
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
插件安装完成
创建源代码工程:
android应用环境准备:
ios应用环境准备:
生成android应用包:
Running command: F:\webx5\model\Native\澶栧崠\build\src\platforms\android\cordova\build.bat --release
F:\webx5\model\Native\澶栧崠\build\src\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error: Failed to run "ant -version", make sure you have ant installed and added to your PATH.
at F:\webx5\model\Native\澶栧崠\build\src\platforms\android\cordova\lib\check_reqs.js:43:27
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
Error: F:\webx5\model\Native\澶栧崠\build\src\platforms\android\cordova\build.bat: Command failed with exit code 8
at ChildProcess.whenDone (F:\webx5\tools\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
"Administrator" Sid: S-1-5-21-4157159124-1099449611-9117697-500
****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.GeneratedMethodAccessor16.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)
红色标注出 好像是 ant 有问题 但是 问了其他人好像 都没特别配置过了,现在问问 大神帮我看看问题?谢谢 |
|