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

QQ登录

只需一步,快速开始

查看: 3222|回复: 5

[未处理] 安卓应用

[复制链接]

17

主题

62

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
QQ
发表于 2020-8-12 15:54:43 | 显示全部楼层 |阅读模式
在华为mate20 Pro 手机上装了X5开发的应用.第一次打开时跳窗口说应用是打包给旧安卓版本的。有办法提升版本吗?我现在用的是V3.8

Screenshot_20200811_151156_com.innovacity.kidzcms.jpg

48

主题

147

帖子

1575

积分

金牌会员

Rank: 6Rank: 6

积分
1575
QQ
发表于 2020-8-13 08:33:39 | 显示全部楼层
3.9发布试下
回复 支持 反对

使用道具 举报

17

主题

62

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
QQ
 楼主| 发表于 2020-12-24 16:24:13 | 显示全部楼层
3.9试了。得到错误:

      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_5kl4xvzwo8jg9ei3or8z6syxj.run(/Users/sukasuka/WeX5_V3.9-mac/model/Native/kidsportal/build/src/platforms/android/build.gradle:149)
      
      FAILURE: Build failed with an exception.
      
      
      BUILD FAILED* What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApk'.
         > A problem occurred configuring project ':CordovaLib'.
      
      
      Total time: 5.429 secs      > Could not resolve all files for configuration ':CordovaLib:classpath'.
      
               > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
               > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3): No cached version available for offline mode
               > Could not download http-builder.jar (org.codehaus.groovy.modules.http-builder:http-builder:0.7.2): No cached version available for offline mode
               > Could not download maven-ant-tasks.jar (org.apache.maven:maven-ant-tasks:2.1.3): No cached version available for offline mode
               > Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.2.1): No cached version available for offline mode
               > Could not download json-lib-jdk15.jar (net.sf.json-lib:json-lib:2.3): No cached version available for offline mode
               > Could not download nekohtml.jar (net.sourceforge.nekohtml:nekohtml:1.9.16): No cached version available for offline mode
               > Could not download xml-resolver.jar (xml-resolver:xml-resolver:1.2): No cached version available for offline mode
               > Could not download ant.jar (org.apache.ant:ant:1.8.0): No cached version available for offline mode
               > Could not download classworlds.jar (classworlds:classworlds:1.1-alpha-2): No cached version available for offline mode
               > Could not download plexus-container-default.jar (org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1): No cached version available for offline mode
               > Could not download plexus-utils.jar (org.codehaus.plexus:plexus-utils:1.5.15): No cached version available for offline mode
               > Could not download plexus-interpolation.jar (org.codehaus.plexus:plexus-interpolation:1.11): No cached version available for offline mode
               > Could not download maven-artifact.jar (org.apache.maven:maven-artifact:2.2.1): No cached version available for offline mode
               > Could not download maven-artifact-manager.jar (org.apache.maven:maven-artifact-manager:2.2.1): No cached version available for offline mode
               > Could not download maven-model.jar (org.apache.maven:maven-model:2.2.1): No cached version available for offline mode
               > Could not download maven-project.jar (org.apache.maven:maven-project:2.2.1): No cached version available for offline mode
               > Could not download maven-error-diagnostics.jar (org.apache.maven:maven-error-diagnostics:2.2.1): No cached version available for offline mode
               > Could not download maven-settings.jar (org.apache.maven:maven-settings:2.2.1): No cached version available for offline mode
               > Could not download wagon-file.jar (org.apache.maven.wagon:wagon-file:1.0-beta-6): No cached version available for offline mode
               > Could not download wagon-http-lightweight.jar (org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6): No cached version available for offline mode
               > Could not download wagon-provider-api.jar (org.apache.maven.wagon:wagon-provider-api:1.0-beta-6): No cached version available for offline mode
               > Could not download httpcore.jar (org.apache.httpcomponents:httpcore:4.2.1): No cached version available for offline mode
               > Could not download commons-codec.jar (commons-codec:commons-codec:1.6): No cached version available for offline mode
               > Could not download commons-beanutils.jar (commons-beanutils:commons-beanutils:1.8.0): No cached version available for offline mode
               > Could not download commons-collections.jar (commons-collections:commons-collections:3.2.1): No cached version available for offline mode
               > Could not download commons-lang.jar (commons-lang:commons-lang:2.4): No cached version available for offline mode
               > Could not download ezmorph.jar (net.sf.ezmorph:ezmorph:1.0.6): No cached version available for offline mode
               > Could not download xercesImpl.jar (xerces:xercesImpl:2.9.1): No cached version available for offline mode
               > Could not download ant-launcher.jar (org.apache.ant:ant-launcher:1.8.0): No cached version available for offline mode
               > Could not download maven-repository-metadata.jar (org.apache.maven:maven-repository-metadata:2.2.1): No cached version available for offline mode
               > Could not download backport-util-concurrent.jar (backport-util-concurrent:backport-util-concurrent:3.1): No cached version available for offline mode
               > Could not download maven-profile.jar (org.apache.maven:maven-profile:2.2.1): No cached version available for offline mode
               > Could not download maven-plugin-registry.jar (org.apache.maven:maven-plugin-registry:2.2.1): No cached version available for offline mode
               > Could not download wagon-http-shared.jar (org.apache.maven.wagon:wagon-http-shared:1.0-beta-6): No cached version available for offline mode
               > Could not download xml-apis.jar (xml-apis:xml-apis:1.3.04): No cached version available for offline mode
               > Could not download xercesMinimal.jar (nekohtml:xercesMinimal:1.9.6.2): No cached version available for offline mode
               > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode
      
回复 支持 反对

使用道具 举报

17

主题

62

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
QQ
 楼主| 发表于 2020-12-24 16:24:44 | 显示全部楼层

      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Error: /Users/sukasuka/WeX5_V3.9-mac/model/Native/kidsportal/build/src/platforms/android/gradlew: Command failed with exit code 1 Error output:
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApk'.
         > A problem occurred configuring project ':CordovaLib'.
            > Could not resolve all files for configuration ':CordovaLib:classpath'.
               > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
               > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3): No cached version available for offline mode
               > Could not download http-builder.jar (org.codehaus.groovy.modules.http-builder:http-builder:0.7.2): No cached version available for offline mode
               > Could not download maven-ant-tasks.jar (org.apache.maven:maven-ant-tasks:2.1.3): No cached version available for offline mode
               > Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.2.1): No cached version available for offline mode
               > Could not download json-lib-jdk15.jar (net.sf.json-lib:json-lib:2.3): No cached version available for offline mode
               > Could not download nekohtml.jar (net.sourceforge.nekohtml:nekohtml:1.9.16): No cached version available for offline mode
               > Could not download xml-resolver.jar (xml-resolver:xml-resolver:1.2): No cached version available for offline mode
               > Could not download ant.jar (org.apache.ant:ant:1.8.0): No cached version available for offline mode
               > Could not download classworlds.jar (classworlds:classworlds:1.1-alpha-2): No cached version available for offline mode
               > Could not download plexus-container-default.jar (org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1): No cached version available for offline mode
               > Could not download plexus-utils.jar (org.codehaus.plexus:plexus-utils:1.5.15): No cached version available for offline mode
               > Could not download plexus-interpolation.jar (org.codehaus.plexus:plexus-interpolation:1.11): No cached version available for offline mode
               > Could not download maven-artifact.jar (org.apache.maven:maven-artifact:2.2.1): No cached version available for offline mode
               > Could not download maven-artifact-manager.jar (org.apache.maven:maven-artifact-manager:2.2.1): No cached version available for offline mode
               > Could not download maven-model.jar (org.apache.maven:maven-model:2.2.1): No cached version available for offline mode
               > Could not download maven-project.jar (org.apache.maven:maven-project:2.2.1): No cached version available for offline mode
               > Could not download maven-error-diagnostics.jar (org.apache.maven:maven-error-diagnostics:2.2.1): No cached version available for offline mode
               > Could not download maven-settings.jar (org.apache.maven:maven-settings:2.2.1): No cached version available for offline mode
               > Could not download wagon-file.jar (org.apache.maven.wagon:wagon-file:1.0-beta-6): No cached version available for offline mode
               > Could not download wagon-http-lightweight.jar (org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6): No cached version available for offline mode
               > Could not download wagon-provider-api.jar (org.apache.maven.wagon:wagon-provider-api:1.0-beta-6): No cached version available for offline mode
               > Could not download httpcore.jar (org.apache.httpcomponents:httpcore:4.2.1): No cached version available for offline mode
               > Could not download commons-codec.jar (commons-codec:commons-codec:1.6): No cached version available for offline mode
               > Could not download commons-beanutils.jar (commons-beanutils:commons-beanutils:1.8.0): No cached version available for offline mode
               > Could not download commons-collections.jar (commons-collections:commons-collections:3.2.1): No cached version available for offline mode
               > Could not download commons-lang.jar (commons-lang:commons-lang:2.4): No cached version available for offline mode
               > Could not download ezmorph.jar (net.sf.ezmorph:ezmorph:1.0.6): No cached version available for offline mode
               > Could not download xercesImpl.jar (xerces:xercesImpl:2.9.1): No cached version available for offline mode
               > Could not download ant-launcher.jar (org.apache.ant:ant-launcher:1.8.0): No cached version available for offline mode
               > Could not download maven-repository-metadata.jar (org.apache.maven:maven-repository-metadata:2.2.1): No cached version available for offline mode
               > Could not download backport-util-concurrent.jar (backport-util-concurrent:backport-util-concurrent:3.1): No cached version available for offline mode
               > Could not download maven-profile.jar (org.apache.maven:maven-profile:2.2.1): No cached version available for offline mode
               > Could not download maven-plugin-registry.jar (org.apache.maven:maven-plugin-registry:2.2.1): No cached version available for offline mode
               > Could not download wagon-http-shared.jar (org.apache.maven.wagon:wagon-http-shared:1.0-beta-6): No cached version available for offline mode
               > Could not download xml-apis.jar (xml-apis:xml-apis:1.3.04): No cached version available for offline mode
               > Could not download xercesMinimal.jar (nekohtml:xercesMinimal:1.9.6.2): No cached version available for offline mode
               > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode
      
      * 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/0q/5vc2tnrx5fbcz7mkkkhy0sym0000gn/T/bb71c88d-7442-41e3-9689-ec50e152261f/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
回复 支持 反对

使用道具 举报

17

主题

62

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
QQ
 楼主| 发表于 2020-12-24 21:53:32 | 显示全部楼层
以上错误出现在我吧旧的Native目录抄进v3.9后打包的。建新的目录打包不出现错误。但是我不想重建所有Native目录下的项目。有办法在config.xml做修改吗?
回复 支持 反对

使用道具 举报

17

主题

62

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
QQ
 楼主| 发表于 2020-12-24 22:06:59 | 显示全部楼层
问题解决了: 在  <platform name="ios"> 内加上
    <hook src="hooks/xcode8.js" type="before_compile"/>
就顺利完成打包了。

问题是:我没选择ios打包呀。怎么ios的参数会在config.xml 里呢?
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-4 01:51 , Processed in 0.061254 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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