'Android license status unkown issue with complicated case [closed]
Since I run flutter doctor in CMD, it showed me Android license status unknown issue. And this is my journey to solve it so far.
- Run
flutter doctor --android-licensesas it suggested. - It showed me, ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08 Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
- I googled it and found how to set it up. So I did it as below: setx -m JAVA_HOME "C:\Program Files\Java\jdk1.8.0_321" and it showed me the error below: ERROR: Access to the registry path is denied.
Now, I have no idea what to do.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
