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

QQ登录

只需一步,快速开始

查看: 2533|回复: 5

[结贴] 打包外卖案例出错

[复制链接]

11

主题

41

帖子

87

积分

初级会员

Rank: 2

积分
87
QQ
发表于 2016-6-12 16:11:21 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
打包外卖案例,然后报错,报错内容如下:


开始......   保存配置信息:   编译UI资源:   清除编译环境:   复制模版工程:   复制工程:   复制插件:   加密UI资源:   更新工程信息:   增加插件:   使用到的插件: [org.apache.cordova.splashscreen, org.apache.cordova.splashscreen, me.apla.cordova.plugin.app.preferences, com.justep.cordova.plugin.baidulocation, com.justep.cordova.plugin.unionpay, 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:??????????        weixin_api_key:??????????   插件 "com.justep.cordova.plugin.unionpay" 参数如下:        unionpay_mmode:00   插件参数准备完成   开始安装插件......   Installing "org.apache.cordova.splashscreen" for android   Installing "org.apache.cordova.splashscreen" for ios   Installing "me.apla.cordova.plugin.app.preferences" for android   Installing "me.apla.cordova.plugin.app.preferences" for ios   Installing "com.justep.cordova.plugin.baidulocation" for android   Installing "com.justep.cordova.plugin.baidulocation" for ios   Installing "com.justep.cordova.plugin.unionpay" for android   cordova version check failed ("H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\cordova\version"), continuing anyways.   Installing "com.justep.cordova.plugin.unionpay" for ios   cordova version check failed ("H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\ios\cordova\version"), continuing anyways.   Installing "org.apache.cordova.geolocation" for android   Installing "org.apache.cordova.geolocation" for ios   cordova version check failed ("H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\cordova\version"), continuing anyways.   Installing "cn.jpush.phonegap.JPushPlugin" for android   cordova version check failed ("H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\ios\cordova\version"), continuing anyways.   Installing "cn.jpush.phonegap.JPushPlugin" for ios   Installing "com.justep.cordova.plugin.alipay" for android   cordova version check failed ("H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\cordova\version"), continuing anyways.   Installing "com.justep.cordova.plugin.alipay" for ios   cordova version check failed ("H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\ios\cordova\version"), continuing anyways.   Installing "com.justep.cordova.plugin.weixin.v3" for android   H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android   H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android   Installing "com.justep.cordova.plugin.weixin.v3" for ios   Installing "org.apache.cordova.device" for android   Installing "org.apache.cordova.device" for ios   插件安装完成   创建源代码工程:   android应用环境准备:   ios应用环境准备:   生成android应用包:   Running command: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\cordova\build.bat --debug   Buildfile: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\build.xml   Buildfile: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\build.xml      -set-mode-check:      -set-debug-files:      -check-env:      -check-env:    [checkenv] Android SDK Tools Revision 24.3.1    [checkenv] Installed at H:\BeX5_V3.3\tools\adt-sdk      -setup:    [checkenv] Android SDK Tools Revision 24.3.1    [checkenv] Installed at H:\BeX5_V3.3\tools\adt-sdk      -setup:        [echo] Project Name: X5        [echo] Project Name: X5     [gettype] Project Type: Application     [gettype] Project Type: Application      -pre-clean:      clean:      -set-debug-mode:      -debug-obfuscation-check:      -pre-build:      -build-setup:   [getlibpath] Library dependencies:   [getlibpath]    [getlibpath] ------------------   [getlibpath] Ordered libraries:   [getbuildtools] Using latest Build Tools: 22.0.1        [echo] Resolving Build Target for X5...      nodeps:      -check-env:    [checkenv] Android SDK Tools Revision 24.3.1    [checkenv] Installed at H:\BeX5_V3.3\tools\adt-sdk      -setup:        [echo] Project Name: X5     [gettype] Project Type: Android Library      -pre-clean:      clean:   [gettarget] Project Target:   Android 5.0.1   [gettarget] API level:        21      BUILD SUCCESSFUL   Total time: 2 seconds        [echo] ----------        [echo] Creating output directories if needed...       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\bin       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\bin\res       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\bin\rsObj       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\bin\rsLibs       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\gen       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\bin\classes       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\bin\dexedLibs        [echo] ----------        [echo] Resolving Dependencies for X5...   [dependency] Library dependencies:   [dependency]    [dependency] ------------------   [dependency] Ordered libraries:   [dependency]    [dependency] ------------------        [echo] ----------        [echo] Building Libraries with 'debug'...      nodeps:      -set-mode-check:      -set-debug-files:      -check-env:    [checkenv] Android SDK Tools Revision 24.3.1    [checkenv] Installed at H:\BeX5_V3.3\tools\adt-sdk      -setup:        [echo] Project Name: X5     [gettype] Project Type: Android Library      -set-debug-mode:      -debug-obfuscation-check:      -pre-build:      -build-setup:   [getbuildtools] Using latest Build Tools: 22.0.1        [echo] Resolving Build Target for X5...   [gettarget] Project Target:   Android 5.0.1   [gettarget] API level:        21        [echo] ----------        [echo] Creating output directories if needed...       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\libs       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\res       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\rsObj       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\rsLibs       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\gen       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\classes       [mkdir] Created dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\dexedLibs        [echo] ----------        [echo] Resolving Dependencies for X5...   [dependency] Library dependencies:   [dependency] No Libraries   [dependency]    [dependency] ------------------      -code-gen:   [mergemanifest] Merging AndroidManifest files into one.   [mergemanifest] Manifest merger disabled. Using project manifest only.        [echo] Handling aidl files...        [aidl] No AIDL files to compile.        [echo] ----------        [echo] Handling RenderScript files...        [echo] ----------        [echo] Handling Resources...        [aapt] Generating resource IDs...        [echo] ----------        [echo] Handling BuildConfig class...   [buildconfig] Generating BuildConfig class.      -pre-compile:      -compile:       [javac] Compiling 95 source files to H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\classes       [javac] 注: 某些输入文件使用或覆盖了已过时的 API。       [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。        [echo] Creating library output jar file...         [jar] Building jar: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\classes.jar      -post-compile:      -obfuscate:      -dex:        [echo] Library project: do not convert bytecode...      -crunch:      [crunch] Crunching PNG Files in source dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\res      [crunch] To destination dir: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\res      [crunch] Crunched 0 PNG files to update cache      -package-resources:        [echo] Library project: do not package resources...      -package:        [echo] Library project: do not package apk...      -post-package:      -do-debug:        [echo] Library project: do not create apk...   [propertyfile] Creating new property file: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\build.prop   [propertyfile] Updating property file: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\build.prop   [propertyfile] Updating property file: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\build.prop   [propertyfile] Updating property file: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\CordovaLib\bin\build.prop      -post-build:      debug:      -code-gen:   [mergemanifest] Merging AndroidManifest files into one.   [mergemanifest] Manifest merger disabled. Using project manifest only.        [echo] Handling aidl files...        [aidl] No AIDL files to compile.        [echo] ----------        [echo] Handling RenderScript files...        [echo] ----------        [echo] Handling Resources...        [aapt] Generating resource IDs...        [aapt] H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\res\xml\config.xml:29: error: Error: No resource found that matches the given name (at 'value' with value '??????????').        [aapt]         [aapt] H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\res\xml\config.xml:30: error: Error: No resource found that matches the given name (at 'value' with value '??????????').        [aapt]       BUILD FAILED   H:\BeX5_V3.3\tools\adt-sdk\tools\ant\build.xml:649: The following error occurred while executing this line:   H:\BeX5_V3.3\tools\adt-sdk\tools\ant\build.xml:694: null returned: 1      Total time: 9 seconds      H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\cordova\node_modules\q\q.js:126                       throw e;                             ^   Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\build.xml   Error: H:\BeX5_V3.3\model\Native\waimai\build\src\platforms\android\cordova\build.bat: Command failed with exit code 8       at ChildProcess.whenDone (H:\BeX5_V3.3\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)****ERROR****: 子任务 "exec" 执行失败。****ERROR****: 任务 "buildAndroid" 执行失败。****ERROR****: 执行出错:****ERROR****: 错误信息: exec returned: 1****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html

也没有在http://bbs.wex5.com/thread-82002-1-1.html中找到相应的解决方案,请问我这个问题是什么原因引起的呢?


发表于 2016-6-12 17:47:25 | 显示全部楼层
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

11

主题

41

帖子

87

积分

初级会员

Rank: 2

积分
87
QQ
 楼主| 发表于 2016-6-12 19:41:19 | 显示全部楼层
liangyongfei 发表于 2016-6-12 17:47
微信插件没填参数
http://docs.wex5.com/wex5-app-question-list-2001/

这个跟微信没有关系,单独的一个程序
回复 支持 反对

使用道具 举报

发表于 2016-6-13 10:22:54 | 显示全部楼层
xiaocanghai 发表于 2016-6-12 19:41
这个跟微信没有关系,单独的一个程序

单独的程序!,那也是选择了打包这个微信插件导致的!
你先看看代码中是否引入com.justep.cordova.plugin.weixin.v3
还有就是编辑APP,选择插件的那一页是否勾选了这个插件!

如果有,就取消勾选,
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

11

主题

41

帖子

87

积分

初级会员

Rank: 2

积分
87
QQ
 楼主| 发表于 2016-6-13 11:54:02 | 显示全部楼层
liangyongfei 发表于 2016-6-13 10:22
单独的程序!,那也是选择了打包这个微信插件导致的!
你先看看代码中是否引入com.justep.cordova.plugin ...

没有引入该app啊
回复 支持 反对

使用道具 举报

发表于 2016-6-13 15:46:10 | 显示全部楼层

如果代码中没有引入,没有勾选这个插件!
就不会报这样错误的,日志信息中有com.justep.cordova.plugin.weixin.v3  ,说明肯定是存在这个插件的!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 10:22 , Processed in 0.110219 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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