起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 825|回复: 7

[结贴] 打包常见错误

[复制链接]

7

主题

24

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
发表于 2017-5-31 14:41:59 | 显示全部楼层 |阅读模式
在模式3打包出现如下错误,在帖子搜索和很久,发现大家都是这个错误,但没有解决方案。我用的版本是:3.6
错误代码:
  1. D:\WeX5_V36\model\Native\test\build\src\platforms\android\cordova\node_modules\q\q.js:126
  2.                           throw e;
  3.                           ^
  4.       Error code 1 for command: cmd with args: /s /c "D:\WeX5_V36\model\Native\test\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V36\model\Native\test\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
  5.       ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
  6.       You may not have the required environment or OS to build this project
  7.       Error: cmd: Command failed with exit code 1
  8.    ****ERROR****: 子任务 "exec" 执行失败。
  9.    ****ERROR****: 任务 "buildAndroid" 执行失败。
  10.    ****ERROR****: 执行出错:
  11.    ****ERROR****: 错误信息: exec returned: 1
  12.    ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
  13.    C:\Users\thinkpad\AppData\Local\Temp\090070ab-8cb4-4ff5-8c61-9e8916d21fbf\pack.xml:88: exec returned: 1
  14.            at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
  15.            at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
  16.            at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
  17.            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  18.            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  19.            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  20.            at java.lang.reflect.Method.invoke(Method.java:497)
  21.            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  22.            at org.apache.tools.ant.Task.perform(Task.java:348)
  23.            at org.apache.tools.ant.Target.execute(Target.java:435)
  24.            at org.apache.tools.ant.Target.performTasks(Target.java:456)
  25.            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  26.            at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  27.            at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  28.            at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  29. ****ERROR****: 子任务 "java" 执行失败。
  30. ****ERROR****: 任务 "pack" 执行失败。
  31. ****ERROR****: 执行出错:
  32. ****ERROR****: 错误信息: Java returned: -3
  33. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码

1

主题

6163

帖子

2095

积分

金牌会员

Rank: 6Rank: 6

积分
2095
QQ
发表于 2017-5-31 15:47:33 | 显示全部楼层
你是没有D盘  或是D盘只读吗?
http://docs.wex5.com/wex5-app-question-list-0010/
回复 支持 反对

使用道具 举报

7

主题

24

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
 楼主| 发表于 2017-5-31 16:33:02 | 显示全部楼层
半导体 发表于 2017-5-31 15:47
你是没有D盘  或是D盘只读吗?
http://docs.wex5.com/wex5-app-question-list-0010/

我有D盘,工具就是装在了D盘上,这个问题我看论坛里好多人都提了,但是没有解决办法。

\src\platforms\android\cordova\node_modules\q\q.js:126
throw e;

ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
*ERROR*: 子任务 “exec” 执行失败。
*ERROR*: 任务 “buildAndroid” 执行失败。
*ERROR*: 执行出错:
*ERROR*: 错误信息: exec returned: 1
*ERROR*: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
可是 http://wex5.com/cn/bbs/thread-82002-1-1.html 却没有说这个问题的。
回复 支持 反对

使用道具 举报

1

主题

6163

帖子

2095

积分

金牌会员

Rank: 6Rank: 6

积分
2095
QQ
发表于 2017-5-31 17:24:00 | 显示全部楼层
vtrtbb 发表于 2017-5-31 16:33
我有D盘,工具就是装在了D盘上,这个问题我看论坛里好多人都提了,但是没有解决办法。

\src\platforms\a ...

这个信息并不是全面的  要发完整的日志
回复 支持 反对

使用道具 举报

7

主题

24

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
 楼主| 发表于 2017-5-31 17:45:19 | 显示全部楼层
  1. 开始......
  2.    
  3. 保存配置信息:
  4.    
  5. init
  6.    
  7. 编译UI资源:
  8.    开始......
  9.       
  10.    [JUSTEP_HOME in UIServer]: D:\WeX5_V3.6
  11.    2017-05-31 17:43:14 参数1: D:\WeX5_V3.6/runtime/UIServer
  12.    2017-05-31 17:43:14 参数2: /UI2/demo/account
  13.    2017-05-31 17:43:14 参数3: D:/WeX5_V3.6/model/Native/book/www/x5/UI2
  14.    2017-05-31 17:43:14 参数4:
  15.    2017-05-31 17:43:14 参数5:
  16.    2017-05-31 17:43:14 参数6: /UI2/demo/account/index.w
  17.    2017-05-31 17:43:14 参数7: 3
  18.    2017-05-31 17:43:14 参数8: v_5569_nol_zh_CNs_d_m
  19.    [JUSTEP_HOME in UIServer]: D:\WeX5_V3.6
  20.    2017-05-31 17:43:14 参数0: D:\WeX5_V3.6/runtime/UIServer
  21.    2017-05-31 17:43:14 参数1: /UI2/demo/account
  22.    2017-05-31 17:43:14 参数2: D:/WeX5_V3.6/model/Native/book/www/x5/UI2
  23.    2017-05-31 17:43:14 参数3:
  24.    2017-05-31 17:43:14 参数4:
  25.    2017-05-31 17:43:14 参数5: /UI2/demo/account/index.w
  26.    2017-05-31 17:43:14 参数6: 3
  27.    2017-05-31 17:43:14 参数7: v_5569_nol_zh_CNs_d_m
  28.    2017-05-31 17:43:14 输出目录:D:\WeX5_V3.6\model\Native\book\www\x5\UI2
  29.    2017-05-31 17:43:14 开始清空输出目录...
  30.    2017-05-31 17:43:14 清空输出目录成功
  31.    2017-05-31 17:43:14 开始编译...
  32.    2017-05-31 17:43:15 开始编译WINDOW文件: /UI2/demo/account/classSetting.w
  33.    2017-05-31 17:43:15 开始-WINDOW生成中间文件: /UI2/demo/account/classSetting.w
  34.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/window/server ...
  35.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/window/server
  36.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/model/server ...
  37.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/model/server
  38.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/data/server ...
  39.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/common/server ...
  40.    2017-05-31 17:43:15 加载模块:/UI2/system/resources ...
  41.    2017-05-31 17:43:15 加载模块:/UI2/system/resources
  42.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/common/server
  43.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/data/server
  44.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/panel/server ...
  45.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/panel/server
  46.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/titleBar/server ...
  47.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/titleBar/server
  48.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/list/server ...
  49.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/list/server
  50.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/select/server ...
  51.    2017-05-31 17:43:15 加载模块:/UI2/system/components/justep/select/server
  52.    2017-05-31 17:43:15 结束-WINDOW生成中间文件: /UI2/demo/account/classSetting.w
  53.    2017-05-31 17:43:15 开始-中间文件生成缓存文件: /UI2/demo/account/classSetting.w
  54.    2017-05-31 17:43:16 结束-中间文件生成缓存文件: /UI2/demo/account/classSetting.w
  55.    2017-05-31 17:43:16 结束编译WINDOW文件: /UI2/demo/account/classSetting.w
  56.    2017-05-31 17:43:16 开始编译WINDOW文件: /UI2/demo/account/detail.w
  57.    2017-05-31 17:43:16 开始-WINDOW生成中间文件: /UI2/demo/account/detail.w
  58.    2017-05-31 17:43:16 结束-WINDOW生成中间文件: /UI2/demo/account/detail.w
  59.    2017-05-31 17:43:16 开始-中间文件生成缓存文件: /UI2/demo/account/detail.w
  60.    2017-05-31 17:43:16 结束-中间文件生成缓存文件: /UI2/demo/account/detail.w
  61.    2017-05-31 17:43:16 结束编译WINDOW文件: /UI2/demo/account/detail.w
  62.    2017-05-31 17:43:16 开始编译WINDOW文件: /UI2/demo/account/list.w
  63.    2017-05-31 17:43:16 开始-WINDOW生成中间文件: /UI2/demo/account/list.w
  64.    2017-05-31 17:43:16 加载模块:/UI2/system/components/justep/windowDialog/server ...
  65.    2017-05-31 17:43:16 加载模块:/UI2/system/components/justep/windowDialog/server
  66.    2017-05-31 17:43:16 结束-WINDOW生成中间文件: /UI2/demo/account/list.w
  67.    2017-05-31 17:43:16 开始-中间文件生成缓存文件: /UI2/demo/account/list.w
  68.    2017-05-31 17:43:17 结束-中间文件生成缓存文件: /UI2/demo/account/list.w
  69.    2017-05-31 17:43:17 结束编译WINDOW文件: /UI2/demo/account/list.w
  70.    2017-05-31 17:43:17 开始编译WINDOW文件: /UI2/demo/account/index.w
  71.    2017-05-31 17:43:17 开始-WINDOW生成中间文件: /UI2/demo/account/index.w
  72.    2017-05-31 17:43:17 加载模块:/UI2/system/components/justep/wing/server ...
  73.    2017-05-31 17:43:17 加载模块:/UI2/system/components/justep/wing/server
  74.    2017-05-31 17:43:17 加载模块:/UI2/system/components/justep/contents/server ...
  75.    2017-05-31 17:43:17 加载模块:/UI2/system/components/justep/contents/server
  76.    2017-05-31 17:43:17 结束-WINDOW生成中间文件: /UI2/demo/account/index.w
  77.    2017-05-31 17:43:17 开始-中间文件生成缓存文件: /UI2/demo/account/index.w
  78.    2017-05-31 17:43:17 结束-中间文件生成缓存文件: /UI2/demo/account/index.w
  79.    2017-05-31 17:43:17 结束编译WINDOW文件: /UI2/demo/account/index.w
  80.    2017-05-31 17:43:18 编译Window数:4
  81.    2017-05-31 17:43:18 编译Window成功数:4
  82.    2017-05-31 17:43:18 编译Window失败数:0
  83.    2017-05-31 17:43:18 编译成功
  84.    2017-05-31 17:43:18 开始复制资源...
  85.    2017-05-31 17:43:19 复制资源成功
  86.    2017-05-31 17:43:19 开始生成首页...
  87.    2017-05-31 17:43:19 生成首页成功
  88.    2017-05-31 17:43:19 cordova plugin: cordova-plugin-x-toast,cordova-plugin-inappbrowser,cordova-plugin-app-version,cordova-plugin-keyboard,cordova-plugin-spinner-dialog,
  89.    编译UI资源:
  90.       
  91.    完成。
  92.    
  93. init
  94.    
  95.    开始......
  96.       
  97.    生成应用环境准备:
  98.       
  99.    复制模版工程:
  100.       
  101.    复制工程:
  102.       
  103.    复制WWW资源:
  104.       
  105.    更新工程信息:
  106.       
  107.    增加插件:
  108.       使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, com.justep.cordova.plugin.engine.tencent]
  109.       开始安装插件......
  110.       开始准备插件参数......
  111.       插件 "cordova-plugin-splashscreen" 参数如下:
  112.       插件 "cordova-plugin-app-preferences" 参数如下:
  113.       插件 "cordova-plugin-file" 参数如下:
  114.       插件 "cordova-plugin-file-transfer" 参数如下:
  115.       插件 "cordova-plugin-network-information" 参数如下:
  116.       插件 "cordova-plugin-zip" 参数如下:
  117.       插件 "cordova-plugin-inappbrowser" 参数如下:
  118.       插件 "cordova-plugin-x-toast" 参数如下:
  119.       插件 "com.justep.cordova.plugin.app.utils" 参数如下:
  120.       插件 "com.justep.cordova.plugin.engine.tencent" 参数如下:
  121.            引擎选择方式(webViewEngine):auto
  122.       插件参数准备完成
  123.       Installing "cordova-plugin-splashscreen" for android
  124.       Installing "cordova-plugin-splashscreen" for ios
  125.       Installing "cordova-plugin-app-preferences" for android
  126.       Installing "cordova-plugin-app-preferences" for ios
  127.       Installing "cordova-plugin-file" for android
  128.       Installing "cordova-plugin-file" for ios
  129.       Installing "cordova-plugin-file-transfer" for android
  130.       Dependent plugin "cordova-plugin-file" already installed on android.
  131.       Installing "cordova-plugin-file-transfer" for ios
  132.       Dependent plugin "cordova-plugin-file" already installed on ios.
  133.       Installing "cordova-plugin-network-information" for android
  134.       Installing "cordova-plugin-network-information" for ios
  135.       Installing "cordova-plugin-zip" for android
  136.       Dependent plugin "cordova-plugin-file" already installed on android.
  137.       Installing "cordova-plugin-zip" for ios
  138.       Dependent plugin "cordova-plugin-file" already installed on ios.
  139.       Installing "cordova-plugin-inappbrowser" for android
  140.       Installing "cordova-plugin-inappbrowser" for ios
  141.       Installing "cordova-plugin-x-toast" for android
  142.       Installing "cordova-plugin-x-toast" for ios
  143.       Installing "com.justep.cordova.plugin.app.utils" for android
  144.       Dependent plugin "cordova-plugin-file" already installed on android.
  145.       Dependent plugin "cordova-plugin-file-transfer" already installed on android.
  146.       Dependent plugin "cordova-plugin-network-information" already installed on android.
  147.       Dependent plugin "cordova-plugin-zip" already installed on android.
  148.       Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
  149.       Dependent plugin "cordova-plugin-x-toast" already installed on android.
  150.       Installing "com.justep.cordova.plugin.app.utils" for ios
  151.       Dependent plugin "cordova-plugin-file" already installed on ios.
  152.       Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
  153.       Dependent plugin "cordova-plugin-network-information" already installed on ios.
  154.       Dependent plugin "cordova-plugin-zip" already installed on ios.
  155.       Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
  156.       Dependent plugin "cordova-plugin-x-toast" already installed on ios.
  157.       Installing "com.justep.cordova.plugin.engine.tencent" for android
  158.       Installing "com.justep.cordova.plugin.engine.tencent" for ios
  159.       插件安装完成
  160.       
  161.    创建源代码工程:
  162.       
  163.    生成源代码:
  164.       
  165.    完成。
  166. init
  167.    
  168.    开始......
  169.       
  170.    生成应用环境准备:
  171.       
  172.    android应用环境准备:
  173.       
  174.    ios应用环境准备:
  175.       
  176.    
复制代码
回复 支持 反对

使用道具 举报

7

主题

24

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
 楼主| 发表于 2017-5-31 17:45:48 | 显示全部楼层
  1. 生成android应用包:
  2.       Running command: cmd "/s /c "D:\WeX5_V3.6\model\Native\book\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
  3.       ANDROID_HOME=D:\WeX5_V3.6\tools\adt-sdk
  4.       JAVA_HOME=D:\WeX5_V3.6\java\jre1.8
  5.       Running: D:\WeX5_V3.6\model\Native\book\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.6\model\Native\book\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
  6.       Starting a new Gradle Daemon for this build (subsequent builds will be faster).
  7.       
  8.       
  9.       BUILD FAILEDFAILURE: Build failed with an exception.
  10.       
  11.       
  12.       * What went wrong:
  13.       
  14.       Total time: 6.326 secsA problem occurred configuring root project 'android'.
  15.       
  16.       > Could not resolve all dependencies for configuration ':classpath'.
  17.          > Could not resolve com.android.tools.build:gradle:2.0.0+.
  18.            Required by:
  19.                :android:unspecified
  20.             > No cached version listing for com.android.tools.build:gradle:2.0.0+ available for offline mode.
  21.       
  22.       * Try:
  23.       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  24.       ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
  25.       You may not have the required environment or OS to build this project
  26.       
  27.       D:\WeX5_V3.6\model\Native\book\build\src\platforms\android\cordova\node_modules\q\q.js:126
  28.                           throw e;
  29.                           ^
  30.       Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.6\model\Native\book\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.6\model\Native\book\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
  31.       Error: cmd: Command failed with exit code 1
  32.    ****ERROR****: 子任务 "exec" 执行失败。
  33.    ****ERROR****: 任务 "buildAndroid" 执行失败。
  34.    ****ERROR****: 执行出错:
  35.    ****ERROR****: 错误信息: exec returned: 1
  36.    ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
  37.    C:\Users\thinkpad\AppData\Local\Temp\f22a1ce1-9f2d-463e-8f57-63992284c68c\pack.xml:88: exec returned: 1
  38.            at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
  39.            at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
  40.            at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
  41.            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  42.            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  43.            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  44.            at java.lang.reflect.Method.invoke(Method.java:497)
  45.            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  46.            at org.apache.tools.ant.Task.perform(Task.java:348)
  47.            at org.apache.tools.ant.Target.execute(Target.java:435)
  48.            at org.apache.tools.ant.Target.performTasks(Target.java:456)
  49.            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  50.            at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  51.            at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  52.            at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  53. ****ERROR****: 子任务 "java" 执行失败。
  54. ****ERROR****: 任务 "pack" 执行失败。
  55. ****ERROR****: 执行出错:
  56. ****ERROR****: 错误信息: Java returned: -3
  57. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码
回复 支持 反对

使用道具 举报

1

主题

6163

帖子

2095

积分

金牌会员

Rank: 6Rank: 6

积分
2095
QQ
发表于 2017-5-31 18:01:34 | 显示全部楼层
回复 支持 反对

使用道具 举报

7

主题

24

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
 楼主| 发表于 2017-5-31 18:23:47 | 显示全部楼层
好的,解决了,谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-4-25 03:34 , Processed in 0.062205 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表