mui新人
mui新人
  • 发布:2018-05-23 16:59
  • 更新:2018-05-24 15:25
  • 阅读:2434

用DCloud公用证书一直打包失败

分类:MUI

manifest.plus.plugins.ad.dcloud;
Buildfile: 安装包制作目录build.xml

Copy_Ressource:
[echo] Copy app resource.
[echo]
[echo] assets
[echo]

init:
[echo] Init output directory.....
[echo]

dirs:
[echo]
[echo] Creating output directories if needed...
[echo]
[mkdir] Created dir: 安装包制作目录bin/classes

resource-src:
[echo]
[echo] Generating R.java / Manifest.java from the resources...
[echo]
[echo]
[echo] outdir-r path: src
[echo]
[echo]
[echo] aapt path: SDK目录build-tools/android-4.4/aapt
[echo]

aidl:
[echo]
[echo] Compiling aidl files into Java classes...
[echo]

compile:
[echo]
[echo] outdir-classes = bin/classes
[echo] android-jar = SDK目录platforms/android-19/android.jar
[echo] external = libs
[echo]
[javac] 安装包制作目录build.xml:182: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 89 source files to 安装包制作目录bin/classes
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/core/ImageLoader.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/core/assist/FailReason.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/core/assist/ImageLoadingListener.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/core/assist/ImageSize.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/core/DisplayImageOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/cache/disc/DiscCacheAware.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/core/imageaware/ImageAware.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: 安装包制作目录libs/my-imageloader.jar(com/nostra13/dcloudimageloader/cache/memory/MemoryCacheAware.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 8 warnings

dex:
[echo]
[echo] Converting compiled files and external libraries into bin/classes.dex...
[echo]

package-res:

package-res-and-assets:
[echo]
[echo] Packaging resources and assets...
[echo]

release:
[echo]
[echo] Packaging bin/Pandora-unsigned.apk for release...
[echo]
[echo]
[echo] 安装包制作目录bin/Pandora-unsigned.apk
[echo]
[echo]
[echo] 安装包制作目录bin/Pandora.ap_
[echo]
[echo]
[echo] 安装包制作目录bin/classes.dex
[echo]
[echo]
[echo] 安装包制作目录libs
[echo]
[exec]
[exec] THIS TOOL IS DEPRECATED. See --help for more information.
[exec]
[exec] Failed to add 安装包制作目录bin/Pandora.ap_BUILD FAILED
安装包制作目录build.xml:288: exec returned: 1

Total time: 1 minute 45 seconds
BuildConfigure Failed 20015

BuildConfigure Failed 20015

2018-05-23 16:59 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

通过分析发现应用中包含了一些无用gz文件导致打包失败,在js/libs/pako/test/fixtures/目录中包含了gzip-headers.gz和gzip-joined.gz两个文件,删除后重新提交打包。
注意:从日志中分析发现libs应用的库中包含了很多无用的文件,如cypto-js-develop目录下的docs、test、LICENSE、package.json、README.md这些第三方库的配套文件,没有使用到就不应该作为应用的资源提交打包,建议删除以便减少打包后的apk大小。

  • mui新人 (作者)

    好的,我试试

    2018-05-24 15:29

  • mui新人 (作者)

    好了

    2018-05-24 15:43

2***@qq.com

2***@qq.com

是不是环境的问题呢,如过你打包demo都出错那就是环境问题吧,没配置好

  • mui新人 (作者)

    要配置什么环境吗。我都是用默认的

    2018-05-23 17:05

  • 2***@qq.com

    哦 我看错了 我以为你是用uniapp

    2018-05-23 17:08

DCloud_App_Array

DCloud_App_Array

HBuilder是alpha版本还是正式版?提供下应用的appid。

  • mui新人 (作者)

    正式的吧,比较大的那个版本。appid:H5C1FACB3

    2018-05-23 17:11

  • mui新人 (作者)

    我又提了一个你看看

    2018-05-23 17:20

该问题目前已经被锁定, 无法添加新回复