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

QQ登录

只需一步,快速开始

查看: 8263|回复: 19

[处理中2] 3.4打包失败

  [复制链接]

25

主题

70

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
发表于 2016-3-17 09:02:59 | 显示全部楼层 |阅读模式
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-inappbrowser, nl.x-services.plugins.backgroundaudio, cordova-plugin-media-capture, ch.ti8m.documenthandler, cordova-open, cordova-plugin-file-opener2, cordova-plugin-dialogs, cordova-plugin-file, cordova-plugin-file-transfer, cordova-plugin-camera, com.phonegap.plugins.videoplayer, cordova-plugin-device, com.justep.cordova.plugin.voiceManager, cordova-plugin-media, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   Installing "cordova-plugin-inappbrowser" for android
   Installing "cordova-plugin-inappbrowser" for ios
   Installing "nl.x-services.plugins.backgroundaudio" for android
   Installing "nl.x-services.plugins.backgroundaudio" for ios
   Installing "cordova-plugin-file" for android
   Installing "cordova-plugin-file" for ios
   Installing "cordova-plugin-media-capture" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-media-capture" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "ch.ti8m.documenthandler" for android
   Installing "ch.ti8m.documenthandler" for ios
   Installing "cordova-plugin-file-transfer" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-file-transfer" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-open" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Dependent plugin "cordova-plugin-file-transfer" already installed on android.
   Installing "cordova-open" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
   Installing "cordova-plugin-file-opener2" for android
   Installing "cordova-plugin-file-opener2" for ios
   Installing "cordova-plugin-dialogs" for android
   Installing "cordova-plugin-dialogs" for ios
   Installing "cordova-plugin-camera" for android
   Installing "cordova-plugin-camera" for ios
   Installing "com.phonegap.plugins.videoplayer" for android
   Installing "com.phonegap.plugins.videoplayer" for ios
   Installing "cordova-plugin-device" for android
   Installing "cordova-plugin-device" for ios
   Installing "com.justep.cordova.plugin.voiceManager" for android
   Installing "com.justep.cordova.plugin.voiceManager" for ios
   Installing "cordova-plugin-media" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-media" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-splashscreen" for android
   Installing "cordova-plugin-splashscreen" for ios
   Installing "cordova-plugin-app-preferences" for android
   Installing "cordova-plugin-app-preferences" for ios
   Installing "cordova-plugin-network-information" for android
   Installing "cordova-plugin-network-information" for ios
   Installing "cordova-plugin-zip" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-zip" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-x-toast" for android
   Installing "cordova-plugin-x-toast" for ios
   Installing "com.justep.cordova.plugin.app.utils" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Dependent plugin "cordova-plugin-file-transfer" already installed on android.
   Dependent plugin "cordova-plugin-network-information" already installed on android.
   Dependent plugin "cordova-plugin-zip" already installed on android.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
   Dependent plugin "cordova-plugin-x-toast" already installed on android.
   Installing "com.justep.cordova.plugin.app.utils" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
   Dependent plugin "cordova-plugin-network-information" already installed on ios.
   Dependent plugin "cordova-plugin-zip" already installed on ios.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
   Dependent plugin "cordova-plugin-x-toast" already installed on ios.
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
   ANDROID_HOME=C:\BaiduYunDownload\WeX5_V3.4_4897/tools/adt-sdk
   JAVA_HOME=C:\BaiduYunDownload\WeX5_V3.4_4897/java/jre1.7
   Running: C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\gradlew cdvBuildDebug -b C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   java.io.IOException: 设备未就绪。
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   
   C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\gradlew cdvBuildDebug -b C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
   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


求教:什么问题呢 ?
发表于 2016-3-17 11:16:57 | 显示全部楼层
http://bbs.wex5.com/forum.php?mo ... 4&pid=165222064
http://bbs.wex5.com/forum.php?mo ... ld%2Bthis%2Bproject
是不是代码中引入刻cordova插件,但是这个插件需要参数配置,而你没有呢?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

25

主题

70

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
 楼主| 发表于 2016-3-17 11:37:54 | 显示全部楼层
不是这个原因。我引入的插件都是不需要参数的。已经检查过了。上面有插件的列表,您看下,都不需要参数
回复 支持 反对

使用道具 举报

发表于 2016-3-17 14:17:26 | 显示全部楼层
jinhong 发表于 2016-3-17 11:37
不是这个原因。我引入的插件都是不需要参数的。已经检查过了。上面有插件的列表,您看下,都不需要参数 ...

应该就是因为某个插件引起的!你自己排除下原因吧!(代码去掉引入的插件!)
或者先使用平台案例打包,看看是否正常??
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

25

主题

70

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
 楼主| 发表于 2016-3-17 15:47:15 | 显示全部楼层
仔细看看,显示的是插件成功了。我是了原有的案例也不行。还有,我把全部的插件都去掉。还是报同样的错误。
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   Installing "cordova-plugin-splashscreen" for android
   Installing "cordova-plugin-splashscreen" for ios
   Installing "cordova-plugin-app-preferences" for android
   Installing "cordova-plugin-app-preferences" for ios
   Installing "cordova-plugin-file" for android
   Installing "cordova-plugin-file" for ios
   Installing "cordova-plugin-file-transfer" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-file-transfer" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-network-information" for android
   Installing "cordova-plugin-network-information" for ios
   Installing "cordova-plugin-zip" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-zip" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-inappbrowser" for android
   Installing "cordova-plugin-inappbrowser" for ios
   Installing "cordova-plugin-x-toast" for android
   Installing "cordova-plugin-x-toast" for ios
   Installing "com.justep.cordova.plugin.app.utils" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Dependent plugin "cordova-plugin-file-transfer" already installed on android.
   Dependent plugin "cordova-plugin-network-information" already installed on android.
   Dependent plugin "cordova-plugin-zip" already installed on android.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
   Dependent plugin "cordova-plugin-x-toast" already installed on android.
   Installing "com.justep.cordova.plugin.app.utils" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
   Dependent plugin "cordova-plugin-network-information" already installed on ios.
   Dependent plugin "cordova-plugin-zip" already installed on ios.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
   Dependent plugin "cordova-plugin-x-toast" already installed on ios.
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
   ANDROID_HOME=C:\BaiduYunDownload\WeX5_V3.4_4897/tools/adt-sdk
   JAVA_HOME=C:\BaiduYunDownload\WeX5_V3.4_4897/java/jre1.7
   Running: C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\gradlew cdvBuildDebug -b C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   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
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   java.io.IOException: 设备未就绪。
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   
   C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\gradlew cdvBuildDebug -b C:\BaiduYunDownload\WeX5_V3.4_4897\model\Native\zhaopian\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
   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
  求赐教!!!!
回复 支持 反对

使用道具 举报

发表于 2016-3-17 17:08:36 | 显示全部楼层
jinhong 发表于 2016-3-17 15:47
仔细看看,显示的是插件成功了。我是了原有的案例也不行。还有,我把全部的插件都去掉。还是报同样的错误。 ...

你好楼主,该问题需要远程,已经通过技术服务QQ加你为好友了,请及时通过,我们会尽快QQ远程。
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

1

主题

8

帖子

12

积分

新手上路

Rank: 1

积分
12
QQ
发表于 2016-4-13 09:41:21 | 显示全部楼层
liangyongfei 发表于 2016-3-17 17:08
你好楼主,该问题需要远程,已经通过技术服务QQ加你为好友了,请及时通过,我们会尽快QQ远程。 ...

同样的问题,现在有解决了吗?就是直接打包demo时报楼主一样的错。防火墙都 关了,机器裸跑的
回复 支持 反对

使用道具 举报

发表于 2016-4-13 11:34:24 | 显示全部楼层
hawx_01 发表于 2016-4-13 09:41
同样的问题,现在有解决了吗?就是直接打包demo时报楼主一样的错。防火墙都 关了,机器裸跑的 ...

根据错误信息,先在这个帖子中找下原因:http://wex5.com/cn/bbs/thread-82002-1-1.html
或者论坛搜下,
如果还是找不到原因,建议把Native下自己app应用的log\build.log文件发一下
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

1

主题

8

帖子

12

积分

新手上路

Rank: 1

积分
12
QQ
发表于 2016-4-13 11:43:17 | 显示全部楼层
liangyongfei 发表于 2016-4-13 11:34
根据错误信息,先在这个帖子中找下原因:http://wex5.com/cn/bbs/thread-82002-1-1.html
或者论坛搜下,
...

build日志就是上面楼主贴的一样的,在你常见报错的贴子找了下,有相同错误 ,但都没给出问题所在。。。
回复 支持 反对

使用道具 举报

1

主题

8

帖子

12

积分

新手上路

Rank: 1

积分
12
QQ
发表于 2016-4-13 11:45:17 | 显示全部楼层
hawx_01 发表于 2016-4-13 11:43
build日志就是上面楼主贴的一样的,在你常见报错的贴子找了下,有相同错误 ,但都没给出问题所在。。。 ...

日志:
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   Installing "cordova-plugin-splashscreen" for android
   Installing "cordova-plugin-splashscreen" for ios
   Installing "cordova-plugin-app-preferences" for android
   Installing "cordova-plugin-app-preferences" for ios
   Installing "cordova-plugin-file" for android
   Installing "cordova-plugin-file" for ios
   Installing "cordova-plugin-file-transfer" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-file-transfer" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-network-information" for android
   Installing "cordova-plugin-network-information" for ios
   Installing "cordova-plugin-zip" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-zip" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-inappbrowser" for android
   Installing "cordova-plugin-inappbrowser" for ios
   Installing "cordova-plugin-x-toast" for android
   Installing "cordova-plugin-x-toast" for ios
   Installing "com.justep.cordova.plugin.app.utils" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Dependent plugin "cordova-plugin-file-transfer" already installed on android.
   Dependent plugin "cordova-plugin-network-information" already installed on android.
   Dependent plugin "cordova-plugin-zip" already installed on android.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
   Dependent plugin "cordova-plugin-x-toast" already installed on android.
   Installing "com.justep.cordova.plugin.app.utils" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
   Dependent plugin "cordova-plugin-network-information" already installed on ios.
   Dependent plugin "cordova-plugin-zip" already installed on ios.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
   Dependent plugin "cordova-plugin-x-toast" already installed on ios.
   Installing "cordova-plugin-app-version" for android
   Installing "cordova-plugin-app-version" for ios
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "C:\WeX5_V3.4\model\Native\浠块�旂墰\build\src\platforms\android\cordova\build.bat --release --gradleArg=--offline""
   ANDROID_HOME=C:\WeX5_V3.4/tools/adt-sdk
   JAVA_HOME=C:\WeX5_V3.4/java/jre1.8
   Running: C:\WeX5_V3.4\model\Native\浠块�旂墰\build\src\platforms\android\gradlew cdvBuildRelease -b C:\WeX5_V3.4\model\Native\浠块�旂墰\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   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
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   java.io.IOException: 设备未就绪。
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   
   C:\WeX5_V3.4\model\Native\浠块�旂墰\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "C:\WeX5_V3.4\model\Native\浠块�旂墰\build\src\platforms\android\gradlew cdvBuildRelease -b C:\WeX5_V3.4\model\Native\浠块�旂墰\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
   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
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 20:29 , Processed in 0.055787 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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