|
发表于 2016-6-29 17:08:51
|
显示全部楼层
楼主问题解决了么?
我也是用的3.4版本,我按升级的文章,从https://github.com/jpush/jpush-phonegap-plugin下载插件。
对下载的插件处理:
1、重命名文件夹为cn.jpush.phonegap.JPushPlugin
2、修改doc为document与x5一致
3、拷贝x5中plugin-ex.xml文件到下载的插件目录
4、按升级极光插件文章修改plugin.xml文件
5、拷贝plugin.js.xdoc到下载的插件,删除下载目录中与x5对不上的文件
6、删除Native中plugins目录下的激光插件目录,拷贝下载修改完成的极光插件目录到plugins中
结果打包错误如下:
使用到的插件: [cn.jpush.phonegap.JPushPlugin, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-device, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version, cordova-plugin-geolocation, cn.jpush.phonegap.JPushPlugin]
2016-06-29 16:54:23 Task "addPlugins" finished with error.
E:\WeX5_V3.4\apache-tomcat\temp\x5app-build7787518263039154192.xml:715: java.io.FileNotFoundException: E:\WeX5_V3.4\model\Native\plugins\org.apache.cordova.device\plugin.xml (系统找不到指定的路径。)
at com.justep.tools.ant.task.AddPluginsTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor69.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 Pack.execTask(Pack.java:42)
at Pack.access$000(Pack.java:25)
at Pack$1.run(Pack.java:96)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.4\model\Native\plugins\org.apache.cordova.device\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.AddPluginsTask.getPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.addPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.addPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.sortPluginByDependency(Unknown Source)
... 15 more
2016-06-29 16:54:23 Target "addPlugins" finished with error.
E:\WeX5_V3.4\apache-tomcat\temp\x5app-build7787518263039154192.xml:715: java.io.FileNotFoundException: E:\WeX5_V3.4\model\Native\plugins\org.apache.cordova.device\plugin.xml (系统找不到指定的路径。)
at com.justep.tools.ant.task.AddPluginsTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor69.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 Pack.execTask(Pack.java:42)
at Pack.access$000(Pack.java:25)
at Pack$1.run(Pack.java:96)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.4\model\Native\plugins\org.apache.cordova.device\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.AddPluginsTask.getPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.addPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.addPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.sortPluginByDependency(Unknown Source)
... 15 more
2016-06-29 16:54:23 Build finished with error.
E:\WeX5_V3.4\apache-tomcat\temp\x5app-build7787518263039154192.xml:715: java.io.FileNotFoundException: E:\WeX5_V3.4\model\Native\plugins\org.apache.cordova.device\plugin.xml (系统找不到指定的路径。)
at com.justep.tools.ant.task.AddPluginsTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor69.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 Pack.execTask(Pack.java:42)
at Pack.access$000(Pack.java:25)
at Pack$1.run(Pack.java:96)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.4\model\Native\plugins\org.apache.cordova.device\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.AddPluginsTask.getPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.addPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.addPlugin(Unknown Source)
at com.justep.tools.ant.task.AddPluginsTask.sortPluginByDependency(Unknown Source)
... 15 more |
|