No IDEA annotations attached to the JDK 1.8 (C:\...), some issues will not be found

Morteza Baghalpoor picture Morteza Baghalpoor · Jun 7, 2018 · Viewed 43.2k times · Source

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

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:

Default Activity not found

How can I solve these issues?

Answer

Levi Rizki Saputra picture Levi Rizki Saputra · Oct 7, 2018

Solution

  • 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

    caches to caches.bak

    compile-server to compile-server.bak

    compiler to compiler.bak

    conversion to conversion.bak

    external_build_system to external_build_system.bak

    frameworks to frameworks.bak

    gradle to gradle.bak

    resource_folder_cache to resource_folder_cache.bak

  • Open the Android Studio and open your project again.