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中mapper快速跳转到xml插件的方法,具...
今天小编给大家分享的是IDEA搭建Maven模块化项目的实现方法,...
这篇文章主要介绍了ideaintellij怎么快速修复if语句缺少大括...
这篇文章主要介绍“idea运行main方法或Test避免编译整个应用...
这篇文章主要介绍“idea项目全局去掉严格的语法校验方式是什...
本文小编为大家详细介绍“Windows、IDEA、VSCode常用快捷键有...