Owner PID: 7948 Our PID: 7064

本文介绍了当使用Android Studio遇到依赖配置冲突导致无法构建项目的错误时的解决方案。具体表现为Gradle实例之间的模块缓存锁定冲突及系统找不到指定文件的问题。文章提供了两种解决方法:一是删除特定目录下的缓存文件;二是尝试清理并重启IDE。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


androidstudio报这样的错:


Error:A problem occurred configuring root project 'meiyaoni'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Timeout waiting to lock artifact cache (C:\Users\Administrator\.gradle\caches\modules-2). It is currently in use by another Gradle instance.
     Owner PID: 7948
     Our PID: 7064
     Owner Operation: resolve configuration ':classpath'
     Our operation: resolve configuration ':classpath'
     Lock file: C:\Users\Administrator\.gradle\caches\modules-2\modules-2.lock


或者提示例如C:\Users\Administrator\.gradle\caches\2.8。。。系统找不到指定文件(原因可能是软件管家删除了系统文件,或者系统还原删除了文件)



解决办法:

1删除2.8后面的里面的缓存


2









Gradle could not start your build. > Cannot create service of type BuildTreeActionExecutor using method LauncherServices$ToolingBuildTreeScopeServices.createActionExecutor() as there is a problem with parameter #1 of type List<BuildActionRunner>. > Cannot create service of type BuildModelActionRunner using BuildModelActionRunner constructor as there is a problem with parameter #1 of type PayloadSerializer. > Cannot create service of type PayloadSerializer using method LauncherServices$ToolingGradleUserHomeScopeServices.createPayloadSerializer() as there is a problem with parameter #2 of type PayloadClassLoaderFactory. > Cannot create service of type PayloadClassLoaderFactory using method LauncherServices$ToolingGradleUserHomeScopeServices.createClassLoaderFactory() as there is a problem with parameter #1 of type CachedClasspathTransformer. > Cannot create service of type DefaultCachedClasspathTransformer using DefaultCachedClasspathTransformer constructor as there is a problem with parameter #6 of type FileSystemAccess. > Cannot create service of type FileSystemAccess using method VirtualFileSystemServices$GradleUserHomeServices.createFileSystemAccess() as there is a problem with parameter #2 of type VirtualFileSystem. > Cannot create service of type BuildLifecycleAwareVirtualFileSystem using method VirtualFileSystemServices$GradleUserHomeServices.createVirtualFileSystem() as there is a problem with parameter #6 of type GlobalCacheLocations. > Cannot create service of type GlobalCacheLocations using method GradleUserHomeScopeServices.createGlobalCacheLocations() as there is a problem with parameter #1 of type List<GlobalCache>. > Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal(). > Timeout waiting to lock journal cache (C:\Users\bgd\.gradle\caches\journal-1). It is currently in use by another Gradle instance. Owner PID: 3096 Our PID: 28368 Owner Operation: Our operation: Lock file: C:\Users\bgd\.gradle\caches\journal-1\journal-1.lock
04-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值