Hello Guys How Are You All ? Hope You All Are Fine. When I Update my MacBook to macOS Big Sur version 11.0.1. I am Faced Flutter could not find tools.jar Error in my mac. So here is all possible way to solve flutter could not find tools.jar.
Flutter could not find tools.jar
What is error
* What went wrong: Execution failed for task ':apple_sign_in:compileDebugJavaWithJavac'. > Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
I Think Some Problem with JDK path That’s Why facing This Error. So lets solve this error by all possible ways.
- Go to your android folder > Gradle.properties > add your jdk path.
- Clean and rebuild then it is done.
// For Example Purpose Only org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home
Problem Is the
JAVA_HOME variable was not set (or Big Sur removed it somehow).
So we simply added it in my
You can simply check and replace the version number in the above line.
At last, here I found the solution.
Add jdk path
to gradle.properties file and did a rebuild.
This Will Also Solve Your error.
Here is GitHub Error #575
So, Guys all 3 solutions are worked for me. let me know in the comment section if it is worked for you as well.