详细问题描述
第三方原生SDK需要引用support-v13,加上这个依赖后打包自定义基座失败,去掉可以成功。
重现步骤
- package.json引用support-v13
"dependencies": [ //"可选, 依赖的库名称" "com.google.code.gson:gson:2.8.2", "com.android.support:support-v13:25.3.1" ],
- 打包自定义基座
- 报错
https://service.dcloud.net.cn/build/errorLog/23b8f3f0-76e1-11e9-bcad-07d7454c7569
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithMultidexlistForRelease'.
com.android.build.api.transform.TransformException: Error while generating the main dex list.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 19s
- 去掉support-v13
"dependencies": [
//"可选, 依赖的库名称"
"com.google.code.gson:gson:2.8.2"
],
- 打包自动基座
- 成功
0 个回复