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

QQ登录

只需一步,快速开始

查看: 4717|回复: 4

[未处理] wex5 3.9打包问题

[复制链接]

40

主题

173

帖子

453

积分

中级会员

Rank: 3Rank: 3

积分
453
QQ
发表于 2020-12-18 11:35:43 | 显示全部楼层 |阅读模式
生成android应用包:
      
      You have been opted out of telemetry. To change this, run: cordova telemetry on.
      args.nofetch undefined
      android project rename compelete!!!!!!
      ANDROID_HOME=F:\WeX5_V3.9\tools\adt-sdk
      JAVA_HOME=F:\WeX5_V3.9\java\jre1.8
      Parallel execution with configuration on demand is an incubating feature.
      :wrapper
      
      BUILD SUCCESSFUL
      
      Total time: 9.913 secs
      Subproject Path: CordovaLib
      Subproject Path: JustepGetContent
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to F:\WeX5_V3.9\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
      
      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
              at build_bmecvtd76vkrsvve8703c85ne.run(F:\WeX5_V3.9\model\Native\锟斤拷模锟斤拷锟斤拷\build\src\platforms\android\build.gradle:149)
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to F:\WeX5_V3.9\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
      
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to F:\WeX5_V3.9\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
      
      Incremental java compilation is an incubating feature.
      File C:\Users\Administrator\.android\repositories.cfg could not be loaded.
      Checking the license for package Android Support Repository in F:\WeX5_V3.9\tools\adt-sdk\licenses
      Warning: License for package Android Support Repository not accepted.
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'android'.
      > You have not accepted the license agreements of the following SDK components:
      [Android Support Repository].
      Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
      Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      
      Total time: 1 mins 4.433 secs
   C:\Users\ADMINI~1\AppData\Local\Temp\6aa451cf-5f37-46fb-bfa7-826e27a2d91b\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)
      Error: cmd: Command failed with exit code 1 Error output:        at org.apache.tools.ant.Task.perform(Task.java:348)
   
      FAILURE: Build failed with an exception.
           at org.apache.tools.ant.Target.execute(Target.java:435)   
   
      * What went wrong:
           at org.apache.tools.ant.Target.performTasks(Target.java:456)   A problem occurred configuring root project 'android'.
   
      > You have not accepted the license agreements of the following SDK components:
           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)   [Android Support Repository].
   
           at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
      Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
           at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
      Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html        at com.justep.deploy.app.utils.Builder.main(Unknown Source)
   
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

40

主题

173

帖子

453

积分

中级会员

Rank: 3Rank: 3

积分
453
QQ
 楼主| 发表于 2020-12-18 11:37:10 | 显示全部楼层
前几天打包还好好的,今天就不行了,打demo里的是可以的
回复 支持 反对

使用道具 举报

40

主题

173

帖子

453

积分

中级会员

Rank: 3Rank: 3

积分
453
QQ
 楼主| 发表于 2020-12-18 16:46:16 | 显示全部楼层
更新了licenses之后出现
回复 支持 反对

使用道具 举报

40

主题

173

帖子

453

积分

中级会员

Rank: 3Rank: 3

积分
453
QQ
 楼主| 发表于 2020-12-18 16:47:08 | 显示全部楼层
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
      
      :processReleaseManifest FAILED
      D:\WeX5_V3.9\model\Native\锟斤拷模锟斤拷锟斤拷\build\src\platforms\android\AndroidManifest.xml:27:9-31 Error:
              Attribute meta-data#android.support.VERSION@value value=(25.3.0) from [com.android.support:appcompat-v7:25.3.0] AndroidManifest.xml:27:9-31
              is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
              Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processReleaseManifest'.
      > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.0) from [com.android.support:appcompat-v7:25.3.0] AndroidManifest.xml:27:9-31
              is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
              Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      
      Total time: 1 mins 38.298 secs
      Error: cmd: Command failed with exit code 1 Error output:
      注: D:\WeX5_V3.9\model\Native\锟斤拷模锟斤拷锟斤拷\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\media\ExtAudioRecorder.java使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
      注: D:\WeX5_V3.9\model\Native\锟斤拷模锟斤拷锟斤拷\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使锟斤拷锟斤拷未锟斤拷锟斤拷锟斤拷锟津不帮拷全锟侥诧拷锟斤拷锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:unchecked 锟斤拷锟铰憋拷锟诫。
      注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
      D:\WeX5_V3.9\model\Native\锟斤拷模锟斤拷锟斤拷\build\src\platforms\android\AndroidManifest.xml:27:9-31 Error:
              Attribute meta-data#android.support.VERSION@value value=(25.3.0) from [com.android.support:appcompat-v7:25.3.0] AndroidManifest.xml:27:9-31
              is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
              Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processReleaseManifest'.
      > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.0) from [com.android.support:appcompat-v7:25.3.0] AndroidManifest.xml:27:9-31
              is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
              Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   C:\Users\Admini\AppData\Local\Temp\dd80538e-e4b5-4400-b333-1fb137142cc6\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)
           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****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

40

主题

173

帖子

453

积分

中级会员

Rank: 3Rank: 3

积分
453
QQ
 楼主| 发表于 2020-12-18 17:33:21 | 显示全部楼层
终于找到问题,从网上找了一个插件是对接PDA发过来的信息的,cordova-plugin-broadcaster,,把这个拿掉就可以打包,请教一下,官方能不能把这样的插件归到3.9里面
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 18:47 , Processed in 0.062878 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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