kibb
kibb
  • 发布:2018-03-15 12:48
  • 更新:2021-03-21 16:42
  • 阅读:2120

安卓版本 在线打包失败

分类:wap2app

manifest.plus.plugins.payment.weixin;manifest.plus.plugins.push.igexin;manifest.plus.plugins.maps.baidu;manifest.plus.plugins.share.qq;manifest.plus.plugins.share.sina;manifest.plus.plugins.share.weixin;manifest.plus.plugins.oauth.qq;manifest.plus.plugins.oauth.sina;manifest.plus.plugins.oauth.weixin;manifest.plus.plugins.map.baidu;
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]
[exec] AndroidManifest.xml:37: error: Error parsing XML: not well-formed (invalid token)BUILD FAILED
安装包制作目录build.xml:142: exec returned: 1

Total time: 1 second
BuildConfigure Failed 20015

2018-03-15 12:48 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

提供下appid

  • kibb (作者)

    APPID 已发私信,请帮忙看下

    2018-03-15 15:35

  • 2***@qq.com

    大神,怎么查日志呀?怎么看是哪里的问题?

    2020-04-28 01:58

DCloud_App_Array

DCloud_App_Array

通过后台查看日志,发现错误原因是AndroidManifest.xml中包含为转义的字符传:
<meta-data android:value="https://**/index.php?m=wap2app&c=login&a=sina" android:name="SINA_REDIRECT_URI"/>
这个应该是配置新浪微博登录或分享的redirect_uri中包含了特殊字符串'&'导致,请做一下转义,正确的值应该是“https://**/index.php?m=wap2app&amp;c=login&amp;a=sina”。
即将'&'转义为'&amp;'

  • kibb (作者)

    感谢!经测试 确实是由该地址导致。不过ios未转义能正常打包。

    2018-03-15 19:11

  • DCloud_App_Array

    这个问题确实是Android平台打包处理不严谨导致的,这是临时解决方案,后续我们会完善打包机的容错性的。

    2018-03-15 19:33

5***@qq.com

5***@qq.com

安卓打包报错:
manifest.plus.plugins.oauth.weixin;manifest.plus.plugins.oauth.qq;manifest.plus.plugins.payment.weixin;manifest.plus.plugins.payment.alipay;manifest.plus.plugins.ad.dcloud;
BuildConfigure Failed 31013 xiaoandianti 图片未找到

BuildConfigure Failed 31013 xiaoandianti 图片未找到

安小帅

安小帅

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

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

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

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

resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[echo] outdir-r path: src
[echo] aapt path: /srv/android/sdk/build-tools/25.0.3/aapt

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

compile:
[echo]
[echo] outdir-classes = bin/classes
[echo] android-jar = /srv/android/sdk/platforms/android-21/android.jar
[echo] external = libs
[echo]
[javac] 安装包制作目录build.xml:165: 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]
[javac] WARNING
[javac]
[javac] The -source switch defaults to 1.8 in JDK 1.8.
[javac] If you specify -target 1.6 you now must also specify -source 1.6.
[javac] Ant will implicitly add -source 1.6 for you. Please change your build file.
[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.

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]
[exec] libpng error: Not a PNG file
[exec] ERROR: Failure processing PNG image res/drawable-mdpi/splash.pngBUILD FAILED
安装包制作目录build.xml:232: The following error occurred while executing this line:
安装包制作目录build.xml:190: exec returned: 1

Total time: 11 seconds
BuildConfigure Failed 20015

BuildConfigure Failed 20015

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