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

QQ登录

只需一步,快速开始

查看: 3433|回复: 5

[结贴] 创建本地app出错!

[复制链接]

11

主题

27

帖子

57

积分

初级会员

Rank: 2

积分
57
QQ
发表于 2017-5-26 15:04:01 | 显示全部楼层 |阅读模式
刚开始学,实在不知道是什么原因。。。。。         增加插件:      使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, com.justep.cordova.plugin.engine.tencent, cordova-plugin-x-toast, cordova-plugin-device, cordova-plugin-inappbrowser, cordova-plugin-app-version, com.cordova.bonaBlePrint, cordova-plugin-spinner-dialog, cordova-plugin-keyboard, phonegap-plugin-barcodescanner, com.justep.cordova.plugin.push]      开始安装插件......      开始准备插件参数......      插件 "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" 参数如下:      插件 "com.justep.cordova.plugin.engine.tencent" 参数如下:           引擎选择方式(webViewEngine):auto      插件 "cordova-plugin-device" 参数如下:      插件 "cordova-plugin-app-version" 参数如下:      插件 "com.cordova.bonaBlePrint" 参数如下:      插件 "cordova-plugin-spinner-dialog" 参数如下:      插件 "cordova-plugin-keyboard" 参数如下:      插件 "phonegap-plugin-barcodescanner" 参数如下:      插件 "com.justep.cordova.plugin.push" 参数如下:           mqtt服务地址(mqtt_server):tcp://location.hostname:1883      插件参数准备完成      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 "com.justep.cordova.plugin.engine.tencent" for android      Installing "com.justep.cordova.plugin.engine.tencent" for 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.cordova.bonaBlePrint" for android      Installing "com.cordova.bonaBlePrint" for ios      Installing "cordova-plugin-spinner-dialog" for android      Installing "cordova-plugin-spinner-dialog" for ios      Installing "cordova-plugin-keyboard" for android      Installing "cordova-plugin-keyboard" for ios      Installing "phonegap-plugin-barcodescanner" for android      Error during processing of action! Attempting to revert...      Failed to install 'phonegap-plugin-barcodescanner':Error: Uh oh!      "D:\Bex5_2\BeX5_V3.6\model\Native\浜曠敯杩芥函\build\src\platforms\android\libs\zxing.jar" already exists!          at Object.module.exports.common.copyNewFile (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\src\plugman\platforms\common.js:67:19)          at module.exports.source-file.install (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:78:20)          at D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\src\platforms\PlatformApiPoly.js:654:27          at Object.ActionStack.process (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\node_modules\cordova-common\src\ActionStack.js:56:25)          at PlatformApiPoly.addPlugin (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\src\platforms\PlatformApiPoly.js:259:20)          at handleInstall (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\src\plugman\install.js:603:6)          at D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\cordova-lib\src\plugman\install.js:382:28          at _fulfilled (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\q\q.js:787:54)          at self.promiseDispatch.done (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\q\q.js:816:30)          at Promise.promise.promiseDispatch (D:\Bex5_2\BeX5_V3.6\tools\cordova\node_modules\q\q.js:749:13)      Error: Uh oh!      "D:\Bex5_2\BeX5_V3.6\model\Native\浜曠敯杩芥函\build\src\platforms\android\libs\zxing.jar" already exists!   ****ERROR****: 子任务 "addPlugins" 执行失败。   ****ERROR****: 任务 "addPlugins" 执行失败。   ****ERROR****: 执行出错:   ****ERROR****: 错误信息: addPlugins returned: 1   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html   C:\Users\ZHUTIA~1\AppData\Local\Temp\7fdfaa6c-1d9d-4a4a-9b3e-d30b1a9e1c24\genSource.xml:122: addPlugins returned: 1           at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)           at com.justep.tools.ant.task.app.AddPluginsTask.execute(Unknown Source)           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)           at java.lang.reflect.Method.invoke(Method.java:497)           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 com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)           at com.justep.deploy.app.utils.Builder.main(Unknown Source)****ERROR****: 子任务 "java" 执行失败。****ERROR****: 任务 "prepareSource" 执行失败。****ERROR****: 执行出错:****ERROR****: 错误信息: Java returned: -3****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-5-26 16:15:49 | 显示全部楼层
平台默认的/Native/templates/advanced/platforms/android/libs下面时候空的,看看你的下面是不是有文件
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

11

主题

27

帖子

57

积分

初级会员

Rank: 2

积分
57
QQ
 楼主| 发表于 2017-5-26 16:26:43 | 显示全部楼层
jishuang 发表于 2017-5-26 16:15
平台默认的/Native/templates/advanced/platforms/android/libs下面时候空的,看看你的下面是不是有文件 ...

是空的~~
还能是什么原因呢?
谢谢回复
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-5-26 16:59:36 | 显示全部楼层
D:\Bex5_2\BeX5_V3.6\model\Native\浜曠敯杩芥函\build\src\platforms\android\libs\zxing.jar" already exists!

提示的已存在,把这个删除了看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

11

主题

27

帖子

57

积分

初级会员

Rank: 2

积分
57
QQ
 楼主| 发表于 2017-5-27 10:14:17 | 显示全部楼层
jishuang 发表于 2017-5-26 16:59
D:\Bex5_2\BeX5_V3.6\model\Native\浜曠敯杩芥函\build\src\platforms\android\libs\zxing.jar" already ex ...

删除后,再次生成APP,还是出错,而且这个文件又回来了....
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-5-27 11:17:18 | 显示全部楼层
重新解压一个版本什么都不动,直接打包就 报错?
打包Native下平台默认的带的是否报错?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 16:48 , Processed in 0.096254 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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