jeib@qq.com
jeib@qq.com
  • 发布:2018-05-30 13:21
  • 更新:2018-06-01 12:35
  • 阅读:783

wap2app打包失败

分类:wap2app

编辑器版本:HBuilder 9.0.6.201805251400
情况说明:
刚开始打包,一切正常,后来修改了后退事件,增加了下拉刷新等一直提示文件出错,之后恢复到最开始的时候就打包失败,再后来新建了一个项目,结果也是打包失败。出错的appid和错误信息如下所示:
"id": "W2Aa.xiaomn.com.cn",
错误信息:
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] 安装包制作目录src/io/dcloud/a/xiaomn/com/cn/R.java:8: package io.dcloud.a clashes with class of same name
[javac] package io.dcloud.a.xiaomn.com.cn;
[javac] ^
[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] 1 error
[javac] 8 warningsBUILD FAILED
安装包制作目录build.xml:182: Compile failed; see the compiler error output for details.

Total time: 9 seconds
BuildConfigure Failed 20015

BuildConfigure Failed 20015

2018-05-30 13:21 分享
已邀请:
jeib@qq.com

jeib@qq.com (作者)

刚开始能打包成功,后来修改了几次就不能成功了。再后来新建一个项目去打包,也是不能成功。打包别的网址都能正常打包。打包的网址 a.xiaomn.com.cn

DCloud_App_Array

DCloud_App_Array

从日志上看是包名冲突导致的错误“io.dcloud.a.xiaomn.com.cn”,这里java混淆会自动生成"io.dcloud.a"的类名,建议修改为更有意义的包名,如“cn.com.xiaomn.wapapp”等(要求是反向域名格式,不要包含特殊字符)

  • jeib@qq.com (作者)

    非常感谢 ,今天试了一下成功了。

    2018-06-01 21:14

要回复问题请先登录注册