AndroidStudio报错 No IDEA annotations attached to the JDK 1.8, some issues will not be found

今天工作中电脑死机   重启后AS报错No IDEA annotations attached to the JDK 1.8   导致项目各处报错并且无法运行  在度娘上各种查 找到了解决方案   记录一下共勉之

解决方案如下:

1.关闭Android Studio

2.在 “C:\Users\UserName\.android”目录,把“build-cache”删除

3.在“C:\Users\UserName\.AndroidStudio3.2\system”目录,删除以下目录

“caches” 

“compiler”

“compile-server”

“conversion”

“external_build_system”

“frameworks”

“gradle”

“resource_folder_cache”

4.再次打开AndroidStudio!可以正常运行

  

你可能感兴趣的:(Android)