Android Studio setup JDK error

2020-06-01 03:26发布

问题:

In Android Studio I am facing bellow error

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

回答1:

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


回答2:

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



回答3:

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