今天关掉AndroidStudio,再打开时出现“No IDEA annotations attached to the JDK 1.8, some issues will not be found”的警告
No IDEA annotations attached to the JDK 1.8, some issues will not be found
Default Activity Not Found
并导致了运行时出现“Default Activity Not Found ”的问题,使项目无法运行,网上解决方法大多是重装AndroidStudio,觉得没有实际解决问题,查了查资料,解决方案如下:
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!搞定参考原文:https://*.com/questions/50740240/no-idea-annotations-attached-to-the-jdk-1-8-c-some-issues-will-not-be-fo
作者:简简单单_a0b0
链接:https://www.jianshu.com/p/55f44eeeedca
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。