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

本文转载自简书,点击查看原文

今天关掉AndroidStudio,再打开时出现“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

并导致了运行时出现“Default Activity Not Found ”的问题,使项目无法运行,网上解决方法大多是重装AndroidStudio,或者就是将下图中改为nothing,但是并没有从根本上解决问题,所以查找了半天终于从简书上查找到了完美解决的办法,感谢大神的分享,然后我们进入正题吧Android studio报错 No IDEA annotations attached to the JDK 1.8, some issues will not be found

解决方案如下:
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!搞定

查看原文