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

QQ登录

只需一步,快速开始

查看: 1691|回复: 3

[处理中3] 在mac上打包同时打包android和IOS出现问题

[复制链接]

116

主题

373

帖子

869

积分

高级会员

Rank: 4

积分
869
QQ
发表于 2019-7-30 14:45:54 | 显示全部楼层 |阅读模式
本帖最后由 witdance 于 2019-7-30 14:47 编辑

BUILD SUCCESSFUL
      
      Total time: 1.803 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 /Users/guohongyi/WeX5_V3.8-mac/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_bqqpqehvv2br4hmsdd2jcbosj.run(/Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/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 /Users/guohongyi/WeX5_V3.8-mac/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 /Users/guohongyi/WeX5_V3.8-mac/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.
     
      :JustepGetContent:compileReleaseJavaWithJavac
      :JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      注: /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/JustepGetContent/src/main/java/com/justep/x5/support/media/ExtAudioRecorder.java使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      注: /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/JustepGetContent/src/main/java/com/justep/x5/support/chooser/FileUploadChooserActivity.java使用了未经检查或不安全的操作。
      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
      :JustepGetContent:extractReleaseAnnotations
   
      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      注: 某些输入文件使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      :CordovaLib:extractReleaseAnnotations
      :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/src/cn/ie-robot/wxapi/WXEntryActivity.java:1: 错误: 需要';'
      package cn.ie-robot.wxapi;
                   ^
      /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/src/cn/ie-robot/wxapi/WXPayEntryActivity.java:1: 错误: 需要';'
      package cn.ie-robot.wxapi;
                   ^
      :compileReleaseJavaWithJavac FAILED
      2 个错误
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':compileReleaseJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.
      
      * 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: 13.248 secs
      Error: /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/gradlew: Command failed with exit code 1 Error output:
      注: /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/JustepGetContent/src/main/java/com/justep/x5/support/media/ExtAudioRecorder.java使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      注: /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/JustepGetContent/src/main/java/com/justep/x5/support/chooser/FileUploadChooserActivity.java使用了未经检查或不安全的操作。
      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
      注: 某些输入文件使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/src/cn/ie-robot/wxapi/WXEntryActivity.java:1: 错误: 需要';'
      package cn.ie-robot.wxapi;
                   ^
      /Users/guohongyi/WeX5_V3.8-mac/model/Native/ie-park/build/src/platforms/android/src/cn/ie-robot/wxapi/WXPayEntryActivity.java:1: 错误: 需要';'
      package cn.ie-robot.wxapi;
                   ^
      2 个错误
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':compileReleaseJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.
      
      * 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
   /var/folders/qy/9bk_thyj0bz299zp01xh_w4h0000gn/T/5bcdd23b-4726-4986-bd24-6a0d77dd5e3f/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: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

116

主题

373

帖子

869

积分

高级会员

Rank: 4

积分
869
QQ
 楼主| 发表于 2019-7-30 14:50:40 | 显示全部楼层
在mac上打包同时打包android和IOS出现问题,在windows上打包android没有问题,可正常运行,同样的代码在,在ios上打包ios没有问题,但是不能正常运行,如果分开打包出现www下随机生成的目录名称不一致。
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35918
发表于 2019-7-30 15:19:28 | 显示全部楼层
cn.ie-robot.wxapi;这个不是平台提供的,自己添加的确认是否引用成功了

不一样的,确认mac和windows的版本是否一致,另外需要注意的是http://docs.wex5.com/bex5-deploy-question-list-10041/
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

116

主题

373

帖子

869

积分

高级会员

Rank: 4

积分
869
QQ
 楼主| 发表于 2019-8-5 09:26:56 | 显示全部楼层
分开打包如何使出现www下随机生成的目录名称一致呢
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 08:44 , Processed in 0.068341 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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