小强同学
小强同学
  • 发布:2019-05-15 15:38
  • 更新:2019-05-15 15:38
  • 阅读:1342

【报Bug】在线打包自定义基座失败

分类:uni-app

详细问题描述

第三方原生SDK需要引用support-v13,加上这个依赖后打包自定义基座失败,去掉可以成功。

重现步骤

  1. package.json引用support-v13
    "dependencies": [  
                //"可选, 依赖的库名称"  
                "com.google.code.gson:gson:2.8.2",  
                "com.android.support:support-v13:25.3.1"  
            ],
  2. 打包自定义基座
  3. 报错

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
  1. 去掉support-v13
"dependencies": [  
                //"可选, 依赖的库名称"  
        "com.google.code.gson:gson:2.8.2"  
            ],
  1. 打包自动基座
  2. 成功
2019-05-15 15:38 负责人:无 分享
已邀请:

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