Learning programming friends may most often encounter the problem is the configuration of various software installation Ah, reinstall Ah, serious or even reinstall system, you may feel that these are very common problems, but for me such a very bad person can be a big problem, of course, today encountered two headache problem:
1. After reloading Studio, the JDK was not configured, and the error message was: "Tools.jar seems to is not in Android Studio classpath. Ensure java_home points to JDK rather than JRE. "
The simplest solution to this problem is to copy the Tools.jar from the Lib folder under the%java_home% path to the Lib directory folder in the Androidstudio installation directory. Of course, at this time, there are friends who will say I do not find the Tools.jar file under the Jdk\lib folder. This is because you placed the JDK and JRE files in the same file directory, resulting in file overlays and Tools.jar and Dt.jar being overwritten. The right thing to do is install the JDK and the JRE in two different folder directories to solve the problem!
2. The error when starting Androidstudio: "The environment variable Java_home (with the value of the path you have installed yourself) does not point to a valid JVM Installation ".
The reason for this error is that when configuring the environment variable, it is customary to copy the bin directory path directly to Java_home, and then write%java_home% in the lower path, even if the semicolon is written in the Java_home path above, which is not correct.
The correct approach should be to enter the path that you used to E:\jdk1.8 this installation in Java_path. Then the PATH is appended with%java_path%\bin; and so the problem is solved.
Here are just some of the small problems I encountered when configuring Androidstudio, hoping to help my friends
Configuration Androidstudio Frequently Asked questions