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”的警告

在这里插入图片描述

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://stackoverflow.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
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值