Method #1: For Android Studio Version 4.2 and Above Navigate to File > Project Structure > SDK Location . Upon navigating there you will find that a tab named “JDK Location”, select that and then you can set the JDK path for the current project on which you’re working.