Execution failed for task ‘:app:checkDebugAarMetadata‘. > Could not resolve all files for configurat
2021/5/8 10:57:21
本文主要是介绍Execution failed for task ‘:app:checkDebugAarMetadata‘. > Could not resolve all files for configurat,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
好几年没有搞过安卓了(15后再没搞过了),最近因公司需求,又开始搞安卓,发现改变好大,好了,言归正传,我接入了一个百度的广告SDK, 按照要求把.aar包放进了libs目录,也按文档在build.gradle(:app)中 implementation了一系列的依赖,最后Rebuild project时报如下错误:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find :Baidu_MobAds_SDK-release_v9.104:.
Required by:
project :app
> Could not find :novelsdk-6.0.1.2:.
Required by:
project :app
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
截图:
直接百度搜Execution failed for task ':app:checkDebugAarMetadata,发现解决方案不多,并且按照给的方案,搞了一遍,发现都没解决,最后我想是不是我引入.aar的时候漏了什么步骤了,于是百度了一下“Android 添加.aar库”,找到一篇帖子,发现自己果然漏了一个步骤:
在build.gradle(:app)中添:记得是与android{ }平级的
repositories { flatDir { dirs 'libs' } }
加入后,再重新Rebuild project 果然没有报错了,在此感谢那位博主,自己也要更新下android相关知识了。
最后贴上那篇帖子链接:https://blog.csdn.net/SXH_Android/article/details/52292903
这篇关于Execution failed for task ‘:app:checkDebugAarMetadata‘. > Could not resolve all files for configurat的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-10-04el-table 开启定时器下,表格的选中状态会消失是什么原因-icode9专业技术文章分享
- 2024-10-03如何安装和初始化飞牛私有云 fnOS?-icode9专业技术文章分享
- 2024-10-03如何安装 App 并连接到飞牛 NAS?-icode9专业技术文章分享
- 2024-10-03如何安装飞牛 TV 并连接到影视服务器?-icode9专业技术文章分享
- 2024-10-03如何在PVE和ESXI上安装飞牛私有云 fnOS?-icode9专业技术文章分享
- 2024-10-03fnOS国产最强NAS安装系统异常情况处理-icode9专业技术文章分享
- 2024-10-03飞牛NAS如何创建存储空间?-icode9专业技术文章分享
- 2024-10-03fnOS国产最强NAS硬盘会自动休眠吗?-icode9专业技术文章分享
- 2024-10-03fnOS国产最强NAS如何安装飞牛影视和创建媒体库?-icode9专业技术文章分享
- 2024-10-03fnOS国产最强NAS如何为家人朋友开通影视账号?-icode9专业技术文章分享