持续集成 jenkins 打安卓包失败

初痕 · 2020年05月30日 · 最后由 初痕 回复于 2020年06月02日 · 4172 次阅读

执行到此一直报错
Execution failed for task ':app:processDebugResources'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

网上解决方案
解决:
修改 Project 的 build.gradle(注意:不是 App 的 build.gradle),两处加上 google()
https://blog.csdn.net/qq_38719039/article/details/80014724

查看了 Project 的 build.gradle 都有

共收到 4 条回复 时间 点赞
仅楼主可见
dearLiu 回复

今天又出现了新的问题😓
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':alipay:bundleDebugAar'.

    Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :alipay project caused this error: D:\jenkins\workspace\AndroidTest\alipay\libs\alipaySdk-15.7.6-20200521195132-noUtdid.aar

  • 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings

这个好像是要把 google() 放在第一个 之前有遇到过 不过太久了也记不太清了😂

鸱夷子皮 回复

项目里面加了,现在出现 alipaySdk-15.7.6-20200521195132-noUtdid.aar 依赖文件错误,我 jenkins 服务器本地目录生成了这个文件,搞不明白这是什么原因

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册