JDK 1.8 (C:\...) 没有附上IDEA注解,有些问题不会被发现 [英] No IDEA annotations attached to the JDK 1.8 (C:\...), some issues will not be found

查看:51
本文介绍了JDK 1.8 (C:\...) 没有附上IDEA注解,有些问题不会被发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Android Studio 3.1.2 中,我突然在编辑器顶部的黄色胶带框中收到以下消息:

In Android Studio 3.1.2 I am suddenly getting the following message in a yellow tape frame at the top of my editor:

JDK 1.8 (C:\Program Files\Android\Android Studio\jre) 没有IDEA注解,有些问题不会被发现

No IDEA annotations attached to the JDK 1.8 (C:\Program Files\Android\Android Studio\jre), some issues will not be found

我在编辑配置中也有一个警告:

I also have a warning in Edit Configurations:

未找到默认活动

我该如何解决这些问题?

How can I solve these issues?

推荐答案

解决方案

  • 关闭 Android Studio
  • 转到C:\Users\UserName\.android 并将build-cache 文件夹重命名为build-cache.bak
  • 转到 C:\Users\UserName\.AndroidStudio3.2\system 并重命名这些文件夹

  • Close Android Studio
  • Go to C:\Users\UserName\.android and rename the build-cache folder to build-cache.bak
  • Go to C:\Users\UserName\.AndroidStudio3.2\system and rename these folders

cachescaches.bak

compile-servercompile-server.bak

compilercompiler.bak

conversionconversion.bak

external_build_systemexternal_build_system.bak

frameworksframeworks.bak

gradlegradle.bak

resource_folder_cacheresource_folder_cache.bak

打开 Android Studio 并再次打开您的项目.

Open the Android Studio and open your project again.

这篇关于JDK 1.8 (C:\...) 没有附上IDEA注解,有些问题不会被发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆