Could not create parent directory for lock file

今天做开发的时候 上午还好好的项目,导了写东西后 下午构建的时候就报这个错。

Could not create parent directory for lock file 这个错多半是缓存gradle文件的权限有问题

总结了一下,有几个方法:

1、terminal中  清除缓存 ./gradlew clean  然后  ./gradlew  assembleDebug      

2、Invalidate caches 清除android studio缓存 重启

3 退出,以管理员身份运行android studio。

猜你喜欢

转载自blog.csdn.net/cs19891017/article/details/130031111