The newly installed Windows 8.1 system, Android SDK, and JDK are all the latest versions. However, when the SDK Manager is opened, the command line window does not display the latest version.
After searching, a problem is identified: There is a find_java.batin the SDK directory tools \ lib. the current path is to find the path of jave.exe, but the path output is incorrect. Find_java.bat is called In sdk \ tools \ Android. bat. The online solution is to directly write the absolute path of java in Android. bat without using find_java.bat.
Java_exe = lib \ find_java.bat not defined java_exe goto: EOF
Change
Java_exe = "absolute path of java"
After the modification, the SDK Manager can be enabled, but then another problem occurs. The Ant package error occurs, and draw9patch. bat also returns. It seems that find_java.bat is used in many places.
By checking the Ant error message, C: \ Program is not a legal command, so I realized whether it is a problem with the space in the JDK installation path, my JDK is installed in the C: \ Program Files folder by default.
Therefore, uninstall and reinstall, install it in the C: \ JAVA folder, reconfigure the environment variables, and solve all problems.