No IDEA annotations attached to the JDK 1.8

No IDEA annotations attached to the JDK 1.8问题

Android studio3.4 用着用着突然xml里没有代码自动提示了,
同时在studio中黄色提示
No IDEA annotations attached to the JDK 1.8.

解决方案

1、关闭Android studio
2、进入C:\Users.android下
build-cache删除或修改为build-cache.bak
3、进入C:\Users<.AndroidStudio3.2>\system下,删除下面的文件夹或统一修改后缀为.bak:
caches to caches.bak
compiler to compiler.bak
compile-server to compile-server.bak
conversion to conversion.bak
external_build_system to external_build_system.bak
frameworks to frameworks.bak
gradle to gradle.bak
resource_folder_cache to resource_folder_cache.bak
4、重启Android studio。

你可能感兴趣的:(No IDEA annotations attached to the JDK 1.8)