Small icon indicating copy to clipboard operation
Small copied to clipboard

buildBundle的时候解析AAR module失败

Open kingcxsc opened this issue 6 years ago • 0 comments

错误报告

你做了什么?

在子模块的gradle中添加了一条远程依赖 compile 'cn.yipianfengye.android:zxing-library:2.2'

你期望的结果是什么?

按照small的编译步骤可以正常编译成功,并引用依赖的功能

实际结果是什么?

在buildBundle过程中 出现以下错误: Error:Execution failed for task ':app.main:transformClassesWithSmallStrippedForRelease'.

Failed to parse aar module from E:\LLThreeInOne\ThreeInOne\app.main\build\intermediates\exploded-aar\cn.yipianfengye.android\zxing-library\2.2\jars\libs\core_3.0.1.jar

Small环境

small { aarVersion = '1.5.0-beta2' buildToAssets = false strictSplitResources = false } ##项目编译环境 compileSdkVersion 26 buildToolsVersion "26.0.1"

aaptOptions { cruncherEnabled = false useNewCruncher = false }

kingcxsc avatar Jan 04 '19 01:01 kingcxsc