17

In Android Studio I am facing bellow error enter image description here

This popup shows when I press Alt+Enter for missing classes(symbols). When I click on setup SDK it shows two options

  1. 1.8(Java version "1.8.0_60")
  2. Android API 23 Platform (Java version "1.8.0_60")

Nothing happens on selecting any of above options.

NOTE: My Java_Home path is correct and in android studio I have checked JDK path it's correct.

I am using Android Studio 1.5.0, Java 1.8 and windows 10

asked Feb 23, 2016 at 12:48
7
  • stackoverflow.com/questions/16581752/… Commented Feb 23, 2016 at 12:49
  • developer.android.com/sdk/installing/index.html Commented Feb 23, 2016 at 12:50
  • @Android Plz read my question my Java path is correct then why should I change it ? Commented Feb 23, 2016 at 12:51
  • 1
    Downvoters add reson of down vote in comment Commented Feb 23, 2016 at 12:53
  • 3
    Have you tried File--> Invalidate Cache and Restart ? Commented Feb 23, 2016 at 12:56

4 Answers 4

27

Simple Invalidate Cache and Restart doesn't work for me. So I have done following steps:

  1. Check and verify Java path in Java_home variable
  2. Start Android Studio and invalidate cache File--> Invalidate Cache and Restart
answered Feb 24, 2016 at 5:35
Sign up to request clarification or add additional context in comments.

2 Comments

Worked with Android studio 3.3
i dont think the first step is necessary; i had the same problem(my java version was 1.8 too) and doing just the last two steps worked. thanks for the answer.
15

Start Android Studio and click File -> Invalidate Cache and Restart. This has worked for me. Thanks

Nathan Bird
9522 gold badges10 silver badges23 bronze badges
answered Apr 5, 2017 at 5:04

Comments

2

Well... In my case, setting up JDK in Project Structure didn't work. Invalidating and restart didn't work either. On further debugging, it led me to this: Can-t-start-Intellij-after-update
Background of this problem:
I had installed Android Studio 3.6 and upgraded to Android Studio 4. Plugins like Mateial theme, Flutter, CSV viewer, JSON viewer etc weren't compatible with Android Studio 4. So I had disregarded those plugins after I upgraded to AS 4.
After some days, I got a notification that plugins which I had disregarded earlier were compatible with AS 4. So I installed those and restarted AS 4 and applied Material theme. I started to face problems like Set up JDK even though the path to JDK was proper.
So I closed AS 4, deleted caches from .gradle, .android, .AndroidStudio4.0\system\caches. Then I opened AS 4 and set up JDK error was gone.
Hope it helps...
P.S: If same problem persists, then I'm afraid that you've to unistall AS and download AS 4 directly and install it. I still can't figure out why it happened to me...

answered Jun 8, 2020 at 16:36

Comments

1

Close Android studio then again open it . Go to File--> Invalidate Cache and Restart . You are done.

answered Jun 15, 2018 at 11:30

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.