Android Studio setup JDK error

最后都变了- 提交于 2019-12-20 17:36:41

问题


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.



来源:https://stackoverflow.com/questions/35578036/android-studio-setup-jdk-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!