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

QQ登录

只需一步,快速开始

查看: 1990|回复: 12

[结贴] 打包错误

[复制链接]

14

主题

55

帖子

205

积分

中级会员

Rank: 3Rank: 3

积分
205
QQ
发表于 2017-7-3 09:47:13 | 显示全部楼层 |阅读模式
升级了 cordova 插件,打包的时候提示 重新编辑
在那重新编译啊?


      :JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      注: 某些输入文件使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      注: D:\WeX5_V3.7\model\Native\极光IMDemo\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
      :JustepGetContent:extractReleaseAnnotations
      :JustepGetContent:mergeReleaseShaders
      :JustepGetContent:compileReleaseShaders
      :JustepGetContent:generateReleaseAssets
      :JustepGetContent:mergeReleaseAssets
      :JustepGetContent:mergeReleaseProguardFiles
      :JustepGetContent:packageReleaseRenderscript UP-TO-DATE
      :JustepGetContent:packageReleaseResources
      :JustepGetContent:processReleaseJavaRes UP-TO-DATE
      :JustepGetContent:transformResourcesWithMergeJavaResForRelease
      :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
      :JustepGetContent:mergeReleaseJniLibFolders
      :JustepGetContent:transformNativeLibsWithMergeJniLibsForRelease
      :JustepGetContent:transformNativeLibsWithSyncJniLibsForRelease
      :JustepGetContent:bundleRelease
      :CordovaLib:prepareDebugDependencies
      :CordovaLib:compileDebugAidl
      :CordovaLib:compileDebugNdk UP-TO-DATE
      :CordovaLib:compileLint
      :CordovaLib:copyDebugLint UP-TO-DATE
      :CordovaLib:compileDebugRenderscript
      :CordovaLib:generateDebugBuildConfig
      :CordovaLib:generateDebugResValues
      :CordovaLib:generateDebugResources
      :CordovaLib:mergeDebugResources
      :CordovaLib:processDebugManifest
      :CordovaLib:processDebugResources
      :CordovaLib:generateDebugSources
      :CordovaLib:incrementalDebugJavaCompilationSafeguard
      :CordovaLib:javaPreCompileDebug
      :CordovaLib:compileDebugJavaWithJavac
      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      注: 某些输入文件使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      :CordovaLib:extractDebugAnnotations
      :CordovaLib:mergeDebugShaders
      :CordovaLib:compileDebugShaders
      :CordovaLib:generateDebugAssets
      :CordovaLib:mergeDebugAssets
      :CordovaLib:mergeDebugProguardFiles
      :CordovaLib:packageDebugRenderscript UP-TO-DATE
      :CordovaLib:packageDebugResources
      :CordovaLib:processDebugJavaRes UP-TO-DATE
      :CordovaLib:transformResourcesWithMergeJavaResForDebug
      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
      :CordovaLib:mergeDebugJniLibFolders
      :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug
      :CordovaLib:transformNativeLibsWithSyncJniLibsForDebug
      :CordovaLib:bundleDebug
      :prepareArmv7DebugDependencies
      :compileArmv7DebugAidl
      :compileArmv7DebugRenderscript
      :generateArmv7DebugBuildConfig
      :mergeArmv7DebugShaders
      :compileArmv7DebugShaders
      :generateArmv7DebugAssets
      :mergeArmv7DebugAssets
      :createXwalkCommandLineFileArmv7Debug
      :generateArmv7DebugResValues
      :generateArmv7DebugResources
      :mergeArmv7DebugResources
      D:\WeX5_V3.7\model\Native\极光IMDemo\build\src\platforms\android\AndroidManifest.xml:70:9-77:19 Error:
              Element service#cn.jpush.android.service.PushService at AndroidManifest.xml:70:9-77:19 duplicated with element declared at AndroidManifest.xml:28:9-35:19
      D:\WeX5_V3.7\model\Native\极光IMDemo\build\src\platforms\android\AndroidManifest.xml:78:9-92:20 Error:
              Element receiver#cn.jpush.android.service.PushReceiver at AndroidManifest.xml:78:9-92:20 duplicated with element declared at AndroidManifest.xml:36:9-50:20
      D:\WeX5_V3.7\model\Native\极光IMDemo\build\src\platforms\android\AndroidManifest.xml:108:9-75 Error:
              Element receiver#cn.jpush.android.service.AlarmReceiver at AndroidManifest.xml:108:9-75 duplicated with element declared at AndroidManifest.xml:51:9-100
      D:\WeX5_V3.7\model\Native\极光IMDemo\build\src\platforms\android\AndroidManifest.xml Error:
              Validation failed, exiting
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processArmv7DebugManifest'.
      > Manifest merger failed with multiple errors, see logs
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      :processArmv7DebugManifest
      
      See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
      
      :processArmv7DebugManifest FAILED
      
      BUILD FAILED
      
      Total time: 2 mins 14.839 secs
      
      D:\WeX5_V3.7\model\Native\鏋佸厜IMDemo\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.7\model\Native\鏋佸厜IMDemo\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.7\model\Native\鏋佸厜IMDemo\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
   C:\Users\ADMINI~1\AppData\Local\Temp\20419f89-1a40-45fc-acd1-f4cd635ace4b\pack.xml:91: exec returned: 1
           at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
           at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
           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)
   ****ERROR****: 子任务 "exec" 执行失败。        at org.apache.tools.ant.Target.performTasks(Target.java:456)
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   
           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****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

1

主题

6163

帖子

2095

积分

金牌会员

Rank: 6Rank: 6

积分
2095
QQ
发表于 2017-7-3 13:43:09 | 显示全部楼层
使用到了什么插件   插件是不是需要填写参数?
回复 支持 反对

使用道具 举报

14

主题

55

帖子

205

积分

中级会员

Rank: 3Rank: 3

积分
205
QQ
 楼主| 发表于 2017-7-3 14:00:43 | 显示全部楼层
用了这个插件  jmessage-phonegap-plugin
https://github.com/jpush/jmessage-phonegap-plugin
需要配置 app_key
然后升级了 cordova-plugin-jcore 到1.1.4
https://github.com/jpush/cordova-plugin-jcore

回复 支持 反对

使用道具 举报

1

主题

6163

帖子

2095

积分

金牌会员

Rank: 6Rank: 6

积分
2095
QQ
发表于 2017-7-3 16:06:35 | 显示全部楼层
eye215 发表于 2017-7-3 14:00
用了这个插件  jmessage-phonegap-plugin
https://github.com/jpush/jmessage-phonegap-plugin
需要配置 ap ...

你的这个 jmessage-phonegap-plugin  是自定义插件?  这个你参考一下文档  是不是自定义的步骤有问题啊
回复 支持 反对

使用道具 举报

14

主题

55

帖子

205

积分

中级会员

Rank: 3Rank: 3

积分
205
QQ
 楼主| 发表于 2017-7-3 16:53:46 | 显示全部楼层
http://doc.wex5.com/use-and-custom-cordova-plugin/
按照这里的步骤来的
然后加了plugin-ex.xml 来配置 app_key
回复 支持 反对

使用道具 举报

14

主题

55

帖子

205

积分

中级会员

Rank: 3Rank: 3

积分
205
QQ
 楼主| 发表于 2017-7-4 15:18:45 | 显示全部楼层
打包很多次,都是显示这个错误
不知道是哪里的问题



00000000001.png
000000000002.png
000000000003.png
回复 支持 反对

使用道具 举报

14

主题

55

帖子

205

积分

中级会员

Rank: 3Rank: 3

积分
205
QQ
 楼主| 发表于 2017-7-4 23:39:41 | 显示全部楼层
半导体 发表于 2017-7-3 16:06
你的这个 jmessage-phonegap-plugin  是自定义插件?  这个你参考一下文档  是不是自定义的步骤有问题啊 ...

还是不行,再帮我看看呗   
回复 支持 反对

使用道具 举报

发表于 2017-7-5 10:59:27 | 显示全部楼层
eye215 发表于 2017-7-4 23:39
还是不行,再帮我看看呗

参考 /Native/plugins/cn.jpush.phonegap.JPushPlugin/plugin-ex.xml
定义变量:
jpush_appkey

/Native/plugins/cn.jpush.phonegap.JPushPlugin/plugin.xml

对应德 变量赋值是 $jpush_appkey
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

14

主题

55

帖子

205

积分

中级会员

Rank: 3Rank: 3

积分
205
QQ
 楼主| 发表于 2017-7-5 13:55:24 | 显示全部楼层
liangyongfei 发表于 2017-7-5 10:59
参考 /Native/plugins/cn.jpush.phonegap.JPushPlugin/plugin-ex.xml
定义变量:
jpush_appkey

改完之后  错误是一样的
问题还是没解决
回复 支持 反对

使用道具 举报

发表于 2017-7-5 14:46:56 | 显示全部楼层
eye215 发表于 2017-7-5 13:55
改完之后  错误是一样的
问题还是没解决

那就有可能是插件不符合规范!
网上很多插件不完全符合corodva 插件的规范!就会报错的!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-1 13:22 , Processed in 0.072234 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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