|
楼主 |
发表于 2018-7-6 15:11:46
|
显示全部楼层
重新新建的APP,打包报错。是我项目里面3.5的cordova没有改过来才报这错吗?不是启动程序的时候才会报错吗?
增加插件:
使用到的插件: [cordova-plugin-background-mode, jpush-phonegap-plugin, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, com.justep.cordova.plugin.engine.tencent, cordova-plugin-device, de.appplant.cordova.plugin.background-mode, cordova-plugin-app-version, cordova-plugin-keyboard, cordova-plugin-spinner-dialog, cordova-plugin-camera, com.justep.cordova.plugin.baidulocation, com.justep.cordova.plugin.bmap, jpush-phonegap-plugin, cordova-plugin-geolocation, ch.ti8m.documenthandler, com.justep.cordova.plugin.barcodescanner, cordova-plugin-x-toast, cordova-plugin-inappbrowser, at.modalog.cordova.plugin.cache, cordova-plugin-whitelist, com.brodysoft.sqlitePlugin, phonegap-plugin-barcodescanner, cordova-plugin-file, cordova-plugin-file-transfer]
开始安装插件......
****ERROR****: 子任务 "AddPlugins" 执行失败。
****ERROR****: 任务 "addPlugins" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: java.io.FileNotFoundException: D:\wex5\tools\app-builder\lib\..\..\..\model\Native\plugins\de.appplant.cordova.plugin.background-mode\plugin.xml (系统找不到指定的路径。)
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
java.io.FileNotFoundException: D:\wex5\tools\app-builder\lib\..\..\..\model\Native\plugins\de.appplant.cordova.plugin.background-mode\plugin.xml (系统找不到指定的路径。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)
at com.justep.tools.ant.task.app.AddPluginsTask.b(Unknown Source)
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)
C:\Users\air\AppData\Local\Temp\75956d52-ae2c-492d-8ae1-19443bbee22f\genSource.xml:167: java.io.FileNotFoundException: D:\wex5\tools\app-builder\lib\..\..\..\model\Native\plugins\de.appplant.cordova.plugin.background-mode\plugin.xml (系统找不到指定的路径。)
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)
Caused by: java.io.FileNotFoundException: D:\wex5\tools\app-builder\lib\..\..\..\model\Native\plugins\de.appplant.cordova.plugin.background-mode\plugin.xml (系统找不到指定的路径。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)
at com.justep.tools.ant.task.app.AddPluginsTask.b(Unknown Source)
at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)
... 13 more
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "prepareSource" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html |
|