[Solved] Android "Please Choose a Valid JDK Directory" Error Message

[Solved] Android "Please Choose a Valid JDK Directory" Error Message

Solve "Please Choose a Valid JDK Directory" Error message
Solve “Please Choose a Valid JDK Directory” Error message

Development of the Android applications has become one of the most common activities in today’s time. Android Studio is software that lets you develop your Android application without any hassle. The applications on the Android Studio are developed with the help of JAVA language. Hence, the computer also requires JDK. JDK can be downloaded from Oracle.com and installed easily. However, there are times when problems arise during this process and an error message saying “Please Choose a Valid JDK Directory” appears on the screen. Here is all you need to know about the reasons and the solutions for this error.

The Reasons for“Please Choose a Valid JDK Directory” Error message

Downloading and operating a complicated software on your computer is not an easy task, and there are times when numerous problems arise while installing them. Same is the case with the Android Studio application. Multiple reasons can cause the “Please Choose a Valid JDK Directory” error to appear on your page.

  • You have saved the JDK file in a folder you are unable to find, and your computer is unable to detect.
  • You are following the wrong path for the installation or selection of the required JDK directory.
  • There are two versions of JDK for different kinds of processors including the 32 bit and the 64-bit In many cases, the wrong version is downloaded, and this causes this error message.

How to Solve This Error
The “, Please Choose a Valid JDK Directory” error can be easily solved by some simple steps. The reason most people are unable to resolve it is that of the presence of numerous files with the similar names on the computer. However here are some of the most effective solutions to your problem:

  • The first solution to the problem can be done in the following steps:
  1. Open the terminal and enter echo $JAVA_HOME
  2. Now, copy the path that is shown on the terminal by clicking on Ctrl + Shift + C.
  3. Paste the copied path in the Project Structure column of the Android Studio.
  4. The software will start analyzing and recognizing the settings. Once it has recognized it, the update will start.
  5. No wrong JDK message appears.
  • There is a possibility that you might have installed the JDK file in some other folder. Look for it on your computer and select it to solve this error.
  • The next method to get rid of the error message is by:
  1. Installing the JDK again and updating the JAVA_HOME environmental variable.
  2. Go to My Computers. Click on the Properties option and then click on Advance.
  3. Download the JDK again and install it by following the steps shown on the screen.
  4. The last step is to update the JAVA_HOME environmental variable with JDK bin path.
  5. Now try the process again, and you will not be shown the error message.
  • Make sure you have downloaded the right kind of JDK from the 32 bit and 64-bit versions on your computer.

Make sure that you try out all the steps given above to solve your issue. If you still have a problem and are unable to rectify it, give the helpline number of the Android studio a call, and they will give you the full assistance.

Can't get enough freebies? Subscribe to FirstAndGeek

SUBSCRIBE TO FIRSTANDGEEK
POPULAR POSTS

Have an app, software or tech product you want us to review?

WHAT IS FIRSTANDGEEK?

A quick simple digest of the top tech stories, delivered right to your inbox!

Contact Us

More Articles

Have an app, software or tech product you want us to review?

We would Love to! Just send US a message.

Subscribe to our newsletter for the latest in tech!

Join Our 23,458 Subscribers

A quick simple digest of the top tech stories, delivered right to your inbox!

We only send really good stuff. Promise.

Scroll to Top