Error:Could not read cache value from '/Users/wangjin/.gradle/daemon/2.2.1/registry.bin'.
来源:互联网 发布:微星在淘宝 编辑:程序博客网 时间:2024/05/23 00:06
每次导入新工程,都会报这个错,修改 gradle 版本也无法解决,删除 registry.bin 文件再重新从同事那里拷贝一份,是可以解决,但是治标不治本,再次导入工程还是会报这个错。
最终解决办法是删除根目下的 .gradle 及其目录下的文件,然后打开 AndroidStudio,会自动下载工程需要的 gradle 版本,工程编译通过。
另外一种更新 gradle 的方法是,打开 AS 工程下的 gradle-wrapper.properties:
把 gradle 版本改为你需要的版本:
保存后,执行gradlew,就等下载啦~
第一次写博客,失误的地方,欢迎大家指正!!!
2 0
- Error:Could not read cache value from '/Users/wangjin/.gradle/daemon/2.2.1/registry.bin'.
- 错误:Could not read cache value from 'C:\Users\59308\.gradle\daemon\3.3\registry.bin'.
- 关于android studio Error:Could not read cache value from '/Users......问题
- Android Studio Error:Could not read entry ':app:packageDebug' from cache taskArtifacts.bin
- Error:Could not read entry ':app:processDebugManifest' from cache taskArtifacts.bin
- Error:Could not read entry ':app:processDebugManifest' from cache taskArtifacts.bin
- Error:Could not read entry ':app:processDebugManifest' from cache taskArtifacts.bin
- Error:Could not read entry ‘:app:processJylcDebugManifest from cache taskArtifacts.bin
- 解决Android Studio Gradle 'app'project refresh failed 报错 Could not read cache value问题
- Android Studio 编译失败 Could not read entry ':app:processDebugManifest' from cache taskArtifacts.bin
- Android Studio报错Could not read cache value from “...” 的解决方法
- could not read data from '/Users/xxxx/myapp-Info.plist'
- Android studio 编译失败Error:Could not read entry ':app:processDebugManifest' from cache taskArtifacts.b
- make error: libneon.a: could not read symbols: Bad value
- Xcode – ‘Could Not Read From Device’ iPhone Error
- Error:Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle
- Error:Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2
- Error:Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2
- java lock condition
- c++利用libcurl获取http网页的 response headers 等信息
- .net mvc web api 返回 json 内容,过滤值为null的属性
- 哈希函数
- AsyncTask 轻入门
- Error:Could not read cache value from '/Users/wangjin/.gradle/daemon/2.2.1/registry.bin'.
- Web开发 Git和npm的安装
- git的操作整理
- zookeeper在windows下的伪集群安装和启动
- Quartz任务调度基本使用
- C语言跳表(skiplist)实现
- [Servlet]请求调派、请求范围属性、Model 2设计思想简述
- 遍历map的四种方法
- apache 下载地址