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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

24

主题

203

帖子

435

积分

中级会员

Rank: 3Rank: 3

积分
435
QQ
发表于 2016-7-27 11:37:26 | 显示全部楼层
littlelove2013 发表于 2016-1-27 20:02
【Android打包报错】
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行 ...

一样
回复 支持 反对

使用道具 举报

0

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
QQ
发表于 2016-7-27 13:38:39 | 显示全部楼层
开始......
   
保存配置信息:
   
编译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, org.apache.cordova.inappbrowser, cordova-plugin-app-version, org.apache.cordova.device, uk.co.whiteoctober.cordova.appversion]
   开始安装插件......
   开始准备插件参数......
   插件 "cordova-plugin-splashscreen" 参数如下:
   插件 "cordova-plugin-app-preferences" 参数如下:
   插件 "cordova-plugin-file" 参数如下:
   插件 "cordova-plugin-file-transfer" 参数如下:
   插件 "cordova-plugin-network-information" 参数如下:
   插件 "cordova-plugin-zip" 参数如下:
   插件 "cordova-plugin-inappbrowser" 参数如下:
   插件 "cordova-plugin-x-toast" 参数如下:
   插件 "com.justep.cordova.plugin.app.utils" 参数如下:
   插件 "org.apache.cordova.inappbrowser" 参数如下:
   插件 "cordova-plugin-app-version" 参数如下:
   插件 "org.apache.cordova.device" 参数如下:
   插件 "uk.co.whiteoctober.cordova.appversion" 参数如下:
   插件参数准备完成
   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.
   org.apache.cordova.inappbrowser" will not install due to "E:\WeX5_V3.5\model\Native\妫�瀵熼櫌\build\src\plugins\cordova-plugin-inappbrowser" being installed.
   Plugin "cordova-plugin-inappbrowser" already installed on android.
   Plugin "cordova-plugin-inappbrowser" already installed on ios.
   Installing "cordova-plugin-app-version" for android
   Installing "cordova-plugin-app-version" for ios
   Notice: org.apache.cordova.device has been automatically converted to cordova-plugin-device and fetched from npm. This is due to our old plugins registry shutting down.
   Fetching plugin "cordova-plugin-device" via npm
   cordova-plugin-device" will not install due to "E:\WeX5_V3.5\model\Native\妫�瀵熼櫌\build\src\plugins\org.apache.cordova.device" being installed.
   Installing "org.apache.cordova.device" for android
   Notice: org.apache.cordova.device has been automatically converted to cordova-plugin-device and fetched from npm. This is due to our old plugins registry shutting down.
   Fetching plugin "cordova-plugin-device" via npm
   cordova-plugin-device" will not install due to "E:\WeX5_V3.5\model\Native\妫�瀵熼櫌\build\src\plugins\org.apache.cordova.device" being installed.
   Installing "org.apache.cordova.device" for ios
   Installing "uk.co.whiteoctober.cordova.appversion" for android
   Error during processing of action! Attempting to revert...
   Failed to install 'uk.co.whiteoctober.cordova.appversion':Error: Uh oh!
   "E:\WeX5_V3.5\model\Native\妫�瀵熼櫌\build\src\platforms\android\src\uk\co\whiteoctober\cordova\AppVersion.java" already exists!
       at Object.module.exports.common.copyNewFile (E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\src\plugman\platforms\common.js:67:19)
       at module.exports.source-file.install (E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:78:20)
       at E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\src\platforms\PlatformApiPoly.js:654:27
       at Object.ActionStack.process (E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\node_modules\cordova-common\src\ActionStack.js:56:25)
       at PlatformApiPoly.addPlugin (E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\src\platforms\PlatformApiPoly.js:259:20)
       at handleInstall (E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\src\plugman\install.js:603:6)
       at E:\WeX5_V3.5\tools\cordova\node_modules\cordova-lib\src\plugman\install.js:382:28
       at _fulfilled (E:\WeX5_V3.5\tools\cordova\node_modules\q\q.js:787:54)
       at self.promiseDispatch.done (E:\WeX5_V3.5\tools\cordova\node_modules\q\q.js:816:30)
       at Promise.promise.promiseDispatch (E:\WeX5_V3.5\tools\cordova\node_modules\q\q.js:749:13)
   Error: Uh oh!
   "E:\WeX5_V3.5\model\Native\妫�瀵熼櫌\build\src\platforms\android\src\uk\co\whiteoctober\cordova\AppVersion.java" already exists!
****ERROR****: 子任务 "addPlugins" 执行失败。
****ERROR****: 任务 "addPlugins" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: addPlugins returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

谁能帮忙看看啊 急着解决啊

点评

请问这个问题你是怎么解决的。  发表于 2017-3-31 19:40
回复 支持 反对

使用道具 举报

11

主题

44

帖子

119

积分

初级会员

Rank: 2

积分
119
QQ
发表于 2016-7-28 13:32:38 | 显示全部楼层

   插件 "cordova-plugin-file" 参数如下:
   插件 "com.justep.cordova.plugin.AFNetworking" 参数如下:
   插件 "cordova-plugin-http" 参数如下:
   插件 "com.justep.cordova.plugin.weixin.v3" 参数如下:
        微信应用ID(weixin_appid):wx7f1cf94ef1ea9163
        微信应用密钥(weixin_secret):取用户信息必填
        微信商户ID(weixin_partner_id):1260525001
        微信api_key(weixin_api_key):C6B64B44003000013DD711AF15089430
   插件 "cn.jpush.phonegap.JPushPlugin" 参数如下:
        jpush应用标识(AppKey)(jpush_appkey):07ffdfc4ffb965d80480a40c
   插件 "com.justep.cordova.plugin.unionpay" 参数如下:
        控件模式(00:生产模式 01:测试模式)(unionpay_mmode):00
   插件 "com.justep.cordova.plugin.alipay" 参数如下:
        阿里商户(partner):2088811446024912
        阿里支付私钥(rsa_private):MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAM3NsYcFbce3omzhiXY1Mr8nkxuHkpVFky9JBb+vnLzje+mjZIxbHDGIU//3c88H5F6CO6CPNMa036QJ9nhS6Ea7xmEGQ2JxY0JMM2bnQxhRtwwe1nV67boFzkjrOWD1loThzK3pgVkb6D6gLqANXcPSe3JAqrvouNUYvK/+75O1AgMBAAECgYBy3IdlZUlE+x+DB0lyGPTOrSa0abEM8LzZ2jaEKl4fKhOBbXjzwPH2TzEaniAbfzsc6DChRuvcrxxWcF0IALWzqyJdGNxZjlhwyVhKc4BJnn90AUXohvB83AFd2+cHurHkAE8sEO8ihDsSOon0YpKKkA/haQ8RKshTCO8RZIlugQJBAP2WkR3BbPzgHZxKR8u0woe0ZzIkUCa/+dMr8XELE6ZBj1w3uPTq4ePHto5W9MLwzN3p3lN+WcUkAM/BdzlbUyECQQDPwsf4SYCjV5hTNY7sj1sqcO4O8Ti7HnINHkefb90TsIrQjaBYNYxeEjj028yLxKkNkNUoLZQekt0jDast24IVAkBDvM5yplJYkf0W3HilH1m/Kh9Os4h9cVZoZBqQWaccB/MlbPUI5x0D3TsUdoHW+L+gn3H115BfKqjU1hbkyVJBAkEAryckVTMKayrG9aeahd7Z2e75E8nTrRUey+ZyNX0mYZodfXNY8eS7IPe14uCHEnJKn3Ax9DxwulHQcuPsI64CfQJBAPYgBMhCX6HXpLTKUuIID1dy1ENZyEEUZCouQsuPYwirOO6z4NIi8wSa98wgM0/2NJrVs1W2/l2fn8xVycd4Ykk=
        阿里支付公钥(rsa_public):MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB
        阿里url_scheme(alipay_scheme):alipay20888114460249121
   插件 "cordova-plugin-splashscreen" 参数如下:
   插件 "cordova-plugin-app-preferences" 参数如下:
   插件 "cordova-plugin-file-transfer" 参数如下:
   插件 "cordova-plugin-network-information" 参数如下:
   插件 "cordova-plugin-zip" 参数如下:
   插件 "cordova-plugin-inappbrowser" 参数如下:
   插件 "cordova-plugin-x-toast" 参数如下:
   插件 "com.justep.cordova.plugin.app.utils" 参数如下:
   插件 "cordova-plugin-device" 参数如下:
   插件 "cordova-plugin-app-version" 参数如下:
   插件 "com.justep.cordova.plugin.baidulocation" 参数如下:
   插件 "com.justep.cordova.plugin.bmap" 参数如下:
   插件 "cordova-plugin-geolocation" 参数如下:
   插件参数准备完成
   Installing "cordova-plugin-file" for android
   Installing "cordova-plugin-file" for ios
   Installing "com.justep.cordova.plugin.AFNetworking" for android
   Installing "com.justep.cordova.plugin.AFNetworking" for ios
   Installing "cordova-plugin-http" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-http" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "com.justep.cordova.plugin.AFNetworking" already installed on ios.
   Installing "com.justep.cordova.plugin.weixin.v3" for android
   Dependent plugin "cordova-plugin-http" already installed on android.
   The module "ConfigParser" has been factored into "cordova-common". Consider update your plugin hooks.
   E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android
   E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android
   Installing "com.justep.cordova.plugin.weixin.v3" for ios
   Dependent plugin "cordova-plugin-http" already installed on ios.
   Dependent plugin "com.justep.cordova.plugin.AFNetworking" already installed on ios.
   Installing "cn.jpush.phonegap.JPushPlugin" for android
   Running android-install.Hook: after_plugin_install, Package: com.wex5.takeout, Path: E:\WeX5_V3.5\model\Native\澶栧崠\build\src.
   E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\src\cn\jpush\phonegap
   Installing "cn.jpush.phonegap.JPushPlugin" for ios
   Installing "com.justep.cordova.plugin.unionpay" for android
   Installing "com.justep.cordova.plugin.unionpay" for ios
   Installing "com.justep.cordova.plugin.alipay" for android
   Installing "com.justep.cordova.plugin.alipay" for 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-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-device" for android
   Installing "cordova-plugin-device" for ios
   Installing "cordova-plugin-app-version" for android
   Installing "cordova-plugin-app-version" for ios
   Installing "com.justep.cordova.plugin.baidulocation" for android
   Installing "com.justep.cordova.plugin.baidulocation" for ios
   Installing "com.justep.cordova.plugin.bmap" for android
   Installing "com.justep.cordova.plugin.bmap" for ios
   Installing "cordova-plugin-geolocation" for android
   Dependent plugin "com.justep.cordova.plugin.baidulocation" already installed on android.
   Installing "cordova-plugin-geolocation" for ios
   Dependent plugin "com.justep.cordova.plugin.baidulocation" already installed on ios.
   Running android-install.Hook: after_plugin_add, Package: com.wex5.takeout, Path: E:\WeX5_V3.5\model\Native\澶栧崠\build\src.
   E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\src\cn\jpush\phonegap
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\cordova\build.bat --release --gradleArg=--offline""
   ANDROID_HOME=E:\WeX5_V3.5\tools\adt-sdk
   JAVA_HOME=E:\WeX5_V3.5\java\jre1.8
   Running: E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\gradlew cdvBuildRelease -b E:\WeX5_V3.5\model\Native\澶栧崠\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.
   
   E:\WeX5_V3.5\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 "E:\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\gradlew cdvBuildRelease -b E:\WeX5_V3.5\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
   Error: cmd: Command failed with exit code 1
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
以上是win10系统里打包报错
回复 支持 反对

使用道具 举报

0

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2016-7-29 22:51:26 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

我今天出遇到这问题呀,请问怎么解决呀?
回复 支持 反对

使用道具 举报

12

主题

62

帖子

182

积分

初级会员

Rank: 2

积分
182
QQ
发表于 2016-7-30 10:23:28 | 显示全部楼层
leochinacn 发表于 2016-7-28 13:32
插件 "cordova-plugin-file" 参数如下:
   插件 "com.justep.cordova.plugin.AFNetworking" 参数如下 ...

请问你解决这个问题了吗
回复 支持 反对

使用道具 举报

73

主题

345

帖子

1695

积分

金牌会员

Rank: 6Rank: 6

积分
1695
QQ
发表于 2016-7-31 09:59:31 | 显示全部楼层
huangchiwei 发表于 2016-7-29 22:51
我今天出遇到这问题呀,请问怎么解决呀?

解决了。
安卓打包,基本上选好插件(手动选插件更靠铺),参数记得配,就不会有什么问题。
回复 支持 反对

使用道具 举报

1

主题

7

帖子

21

积分

新手上路

Rank: 1

积分
21
QQ
发表于 2016-7-31 13:31:39 | 显示全部楼层
****ERROR****: 子任务 "PaaSState" 执行失败。
****ERROR****: 任务 "deploy" 执行失败。
****ERROR****: 执行出错:
回复 支持 反对

使用道具 举报

4

主题

12

帖子

28

积分

新手上路

Rank: 1

积分
28
QQ
发表于 2016-7-31 14:37:49 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

请问是怎么解决的
回复 支持 反对

使用道具 举报

73

主题

345

帖子

1695

积分

金牌会员

Rank: 6Rank: 6

积分
1695
QQ
发表于 2016-8-2 09:20:51 | 显示全部楼层

我是看FAILURE: Build failed with an exception.以下的LOG内容。
然后再参照:http://bbs.wex5.com/thread-82002-1-1.html 中安卓或苹果打包的几种常见错误类型。
1、有用插件的,先检查插件是否都选上了(最好是手动选择)
2、确认插件有没有用到参数,如果有用到,一定要把参数配上(目前需配参数的主要有MOB、微信、极光)
3、哪个插件出错,可以考虑用排除法。
以上是我的心得,仅供参考。
回复 支持 1 反对 0

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2016-8-2 09:56:25 | 显示全部楼层
BUILD FAILED
   
   Total time: 1 mins 44.193 secs
   ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
   
   D:\WEX5\model\Native\56vd\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
   You may not have the required environment or OS to build this project                    ^
   
   Error code 1 for command: cmd with args: /s /c "D:\WEX5\model\Native\56vd\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WEX5\model\Native\56vd\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://bbs.wex5.com/thread-82002-1-1.html


这个问题怎么解决?
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 10:03 , Processed in 0.056913 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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