JDK 1.8 (C:\...) 没有附上IDEA注解,有些问题不会被发现 [英] No IDEA annotations attached to the JDK 1.8 (C:\...), some issues will not be found
问题描述
在 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 thebuild-cache
folder tobuild-cache.bak
Go to
C:\Users\UserName\.AndroidStudio3.2\system
and rename these folders
caches
到 caches.bak
compile-server
到 compile-server.bak
compiler
到 compiler.bak
conversion
到 conversion.bak
external_build_system
到 external_build_system.bak
frameworks
到 frameworks.bak
gradle
到 gradle.bak
resource_folder_cache
到 resource_folder_cache.bak
打开 Android Studio 并再次打开您的项目.
Open the Android Studio and open your project again.
这篇关于JDK 1.8 (C:\...) 没有附上IDEA注解,有些问题不会被发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!