This Error in Android Studio: The supplied javaHome seems to be invalidAnroid comes due to the corrupt java file in Android studio.
While, When we search on cmd about the JAVA path it’s working fine, and The path of JAVA_HOME Is also added.
But this issue is in the Android Studio folder
Solution
- First Go to the Android Studio Directory
- Delete Jre Folder
- Run cmd as administrator
- Run cd C:\Program Files\Android\Android Studio
- Then Run mklink /D “jre” “jbr”
Android Studio Default directory (Default C:\Program Files\Android\Android Studio)
Note: ( cd C:\Program Files\Android\Android Studio ) This command uses the Default Android studio directory. Make sure to add your own Android Studio Directory if it is somewhere else.
For more Flutter tutorials, Tips, Tricks, Free code, Questions, and Error Solving.
Remember FlutterDecode.com