Android Studio setup JDK error

2020-06-01 03:18发布

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

3条回答
做个烂人
2楼-- · 2020-06-01 04:03

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

查看更多
我想做一个坏孩纸
3楼-- · 2020-06-01 04:10

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
查看更多
SAY GOODBYE
4楼-- · 2020-06-01 04:23

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

查看更多
登录 后发表回答