I tried to use the terminal of Android Studio and error below popped up.
ERROR: JAVA_HOME is set to an invalid directory: jdk1.8.0_131
Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
I made sure that jdk1.8.0_131 is in C:\Program Files\Java, also no ; or /bin at the end of command line as its seen....
could you help to solve this problem?