Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 312
Morteza Baghalpoor Avatar asked Jun 07 '18 11:06

Morteza Baghalpoor


2 Answers

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.

like image 54
Levi Rizki Saputra Avatar answered Oct 14 '22 07:10

Levi Rizki Saputra


I have been working on 3.2.1 version since October 2018 (for 1 month).
But today I started my project in AndroidStudio with a many errors.

I tried to Invalidate Caches and Restart. But it doesn’t helped me.

So, I opened the folder C:\Users\{username}.
There I found three folders: one for the real version - .AndroidStudio3.2 and two for older versions - .AndroidStudio3.1 and .AndroidStudio2.3.

enter image description here

I could only delete the folder with the actual version, but I deleted all the folders. (Because I have no important user settings in AndroidStudio).

Then I restarted AndroidStudio, and I chose “Do not import settings”. Like this:

enter image description here

This method worked for me.

like image 42
V.March Avatar answered Oct 14 '22 08:10

V.March