AndroidStudio报错Unexpected lock protocol found in lock file. Expected 3, found 0.

时间:2024-04-03 19:52:01

报错信息:

AndroidStudio报错Unexpected lock protocol found in lock file. Expected 3, found 0.如果rebuild project无作用删除.gradle文件后重建project无作用并且新建project缺少.iml文件
可以尝试下面操作
Project Structure->Project->更改两个版本号 (改为3.4.1和5.1.1)

apply ok后程序可执行并且不报错,,但是仍然缺少.iml文件,,,等以后找到原因了再来更新
AndroidStudio报错Unexpected lock protocol found in lock file. Expected 3, found 0.
AndroidStudio报错Unexpected lock protocol found in lock file. Expected 3, found 0.