Today We are Going To Solve ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation in Java. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation Error?
- How to Fix ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation Error?
To Fix ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation Error just Add jdk path. Here you have to just add jdk path
org.gradle.java.home=C\:\\Program Files\\Java\\jdk1.8.0_144
togradle.properties
file and just rebuild it. This will help you. - ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation
To Fix ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation Error just Rebuild jsk path. To solve this error first go to your android folder and select Gradle. properties and just add your jdk path and rebuild it
Solution 1 : Add jdk path
Here you have to just add jdk path org.gradle.java.home=C\:\\Program Files\\Java\\jdk1.8.0_144
to gradle.properties
file and just rebuild it. This will help you.
Solution 2 : Rebuild jsk path
To solve this error first go to your android folder and select Gradle. properties and just add your jdk path and rebuild it
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read These Solutions
- java.lang.IllegalArgumentException: Malformed \uxxxx encoding
- Could not find a version that satisfies the requirement cv2 (from versions: ) No matching distribution found for cv2
- An unhandled exception occurred: NOT SUPPORTED: keyword “id”, use “$id” for schema ID
- Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)
- Notice: Trying to access array offset on value of type bool