当前位置: 代码迷 >> 综合 >> android studio No IDEA annotations attached to the JDK...
  详细解决方案

android studio No IDEA annotations attached to the JDK...

热度:75   发布时间:2024-03-09 08:23:11.0

问题描述:android studio 突然关闭或者其他问题导出出现No IDEA annotations attached to the JDK JDK(D:\del\Android\Android Studio\jre) ,some issues will not be found,可以正常编译通过,但是androidx的一些类突然也找不到。

解决方案:

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!可以正常运行

 

  相关解决方案