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.8(Java version "1.8.0_60")
- 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
-
stackoverflow.com/questions/16581752/…Android– Android2016年02月23日 12:49:42 +00:00Commented Feb 23, 2016 at 12:49
-
developer.android.com/sdk/installing/index.htmlAndroid– Android2016年02月23日 12:50:08 +00:00Commented Feb 23, 2016 at 12:50
-
@Android Plz read my question my Java path is correct then why should I change it ?Jaiprakash Soni– Jaiprakash Soni2016年02月23日 12:51:10 +00:00Commented Feb 23, 2016 at 12:51
-
1Downvoters add reson of down vote in commentJaiprakash Soni– Jaiprakash Soni2016年02月23日 12:53:32 +00:00Commented Feb 23, 2016 at 12:53
-
3Have you tried File--> Invalidate Cache and Restart ?Farhad– Farhad2016年02月23日 12:56:35 +00:00Commented Feb 23, 2016 at 12:56
4 Answers 4
Simple Invalidate Cache and Restart doesn't work for me. So I have done following steps:
- Check and verify Java path in Java_home variable
- Start Android Studio and invalidate cache
File--> Invalidate Cache and Restart
2 Comments
Start Android Studio and click File -> Invalidate Cache and Restart. This has worked for me. Thanks
Comments
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...
Comments
Close Android studio then again open it . Go to File--> Invalidate Cache and Restart . You are done.
Comments
Explore related questions
See similar questions with these tags.