android studio: no idea annotations attached to the jdk 1.8 some issues will not be found

前端之家收集整理的这篇文章主要介绍了android studio: no idea annotations attached to the jdk 1.8 some issues will not be found前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Android Studio今天早上打开项目提示错误信息:

No IDEA annotations attached to the JDK 1.8 (C:\Program Files\Android\Android Studio\jre),some issues will not be found

解决

  1. 首先关闭Android Studio
  2. 打开计算机,转到C:\Users\UserName\.android文件夹,将build-cache文件重命名build-cache.bak
  3. 转到C:\Users\UserName\.AndroidStudio3.2\system文件夹,并重命名下面的文件夹:
文件夹名 重命名
caches caches.bak
compiler compiler.bak
compile-server compile-server.bak
conversion conversion.bak
external_build_system external_build_system.bak
frameworks frameworks.bak
gradle gradle.bak
resource_folder_cache resource_folder_cache.bak
  1. 重新打开Android Studio并同步工程。

猜你在找的IDEA相关文章