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'
        }
    }
}
相关推荐
zoujiahui_20183 小时前
vscode中创建python虚拟环境的方法
ide·vscode·python
沅霖5 小时前
Android Studio切换到经典UI,老UI
android·ui·android studio
一起搞IT吧7 小时前
内存泄漏系列专题分析之三十二:高通相机CamX ION/dmabuf内存管理机制CmdBuffer
android·图像处理·数码相机
whysqwhw9 小时前
安卓内存优化
android
用户20187928316710 小时前
TabLayout禁止滑动 + 左对齐排列实现
android
whysqwhw10 小时前
安卓Drawable分类
android
_祝你今天愉快11 小时前
SparseArray & ArrayMap
android·数据结构
2501_9160074712 小时前
Charles中文版抓包工具使用指南 提高API调试和网络优化效率
android·ios·小程序·https·uni-app·iphone·webview
叽哥12 小时前
flutter学习第 6 节:按钮与交互组件
android·flutter·ios
xzkyd outpaper12 小时前
Android视图状态以及重绘
android