[英]Gradle error after importing projects from eclipse
I'm getting this error in Android Studio after i've imported a project from eclipse 从eclipse导入项目后,在Android Studio中出现此错误
Error:Could not read cache value from'C:\Users\Username\.gradle\daemon\1.12\registry.bin'.
Does anyone know how to fix it? 有谁知道如何修理它?
退出Android Studio,删除错误消息中列出的路径中的.gradle
目录,然后重新启动。
I know this is a old post. 我知道这是旧帖子。 But instead of deleting .gradle directory, you just need to delete registry.bin.lock .
但是,您无需删除.gradle目录,只需删除Registry.bin.lock即可 。 You will find this in the same directory where registry.bin is.
您将在Registry.bin所在的目录中找到它。 This will save a lot of your time.
这样可以节省大量时间。
Thanks 谢谢
just go C:\\Users\\Username.gradle\\daemon\\1.12 directory and delete all files on that directory. 只需转到C:\\ Users \\ Username.gradle \\ daemon \\ 1.12目录并删除该目录上的所有文件即可。 then restart Android Studio.
然后重新启动Android Studio。 that should work
应该工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.