Android studio之编译提示Could not find :umeng-asms-v1.2.1

1 、问题

java 复制代码
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not find :umeng-asms-v1.2.1:.
     Required by:
         project :app
   > Could not find :umeng-apm-v1.2.0:.
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

只要提示这种Could not find :可能arr包没有引入正确,可能少了dirs

我的是gradle 8.0,在setting gradle文件添加代码

flatDir { dirs 'app/libs' }

java 复制代码
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()

        flatDir {
            dirs 'app/libs'
        }
    }
}
相关推荐
summerkissyou19874 分钟前
Android - 摄像头 - hal - 开发教程,例子,常见问题,分析方法,解决方案
android
sphw29 分钟前
nixnb: Jupyter Notebook 优雅分享
ide·人工智能·jupyter
summerkissyou19871 小时前
Android 16 架构图
android
神龙天舞20011 小时前
MySQL 备库为什么会延迟好几个小时
android·数据库·mysql
海天鹰2 小时前
Android Studio Quail3 | 2026.1.3 升级后 Gradle 报错
android studio
码农coding5 小时前
android12 systemUI 之锁屏
android
圆山猫5 小时前
[Virtualization](三):RISC-V H-extension 与 Guest 执行模式
android·java·risc-v
爱笑鱼5 小时前
Binder(七):getCallingUid() 读到的是谁?clearCallingIdentity() 又清掉了什么?
android
2501_9159090611 小时前
iOS 应用反调试技详解术 检测调试器的原理与防护实践
android·ios·小程序·https·uni-app·iphone·webview
Lvan的前端笔记11 小时前
AndroidX 完全入门指南
android·androidx