The sdk manager can't open the flashback problem perfectly solve the latest method in 2017

I have updated android studio and sdk in the past few days. As a result, sdk manager cannot be opened, and eclipse cannot be used. This is very depressing, so I found the following methods on the Internet, but they all failed. To see which methods, I tried span

(1) Reinstall jdk so that the path has no Chinese and no spaces, and the result fails!

(2) I forgot to configure the SDK environment variables. After configuring it, the result failed!

(3) According to the following method, it still fails, and it still cannot be opened

After installing the JDK, install eclipse and configure the SDK, but the SDK Manager still cannot be opened, and the specific performance is a crash.

The eclipse console prompts that the path cannot be found, etc.

    Solution: find the .bat batch file find_java.bat under the path sdk\tools\lib and open this file with Notepad as shown below

Find the line rem Check we have a valid  Java .exe, change set java_exe=%%a to set java_exe=“F:\softwares\studyApp\Java\jdk1.7.0_40\bin\java.exe”, save and close The document.

Red is your jdk installation path

(4) According to the following method, it still fails, and it still cannot be opened

提示 [SDK Manager] Failed to convert path to a short DOS path: C:\windows\system32\java.exe
Open the tools\lib\find_java.bat file and find
for /f %%a in ('%~dps0\find_java.exe -s') do set java_exe=%%a
for /f %%a in ('%~dps0\find_java.exe -s -w') do set javaw_exe=%%a
Just remove the -s.
for /f %%a in ('%~dps0\find_java.exe') do set java_exe=%%a
for /f %%a in ('%~dps0\find_java.exe -w') do set javaw_exe=%%a

(5) According to the following method, it still fails, and it still cannot be opened. I mean that java.exe, javaw.exe, javaws.exe are not found in  C:\Windows\system32\ 

SDK Manager.exe  confirms the path to the Java .exe by calling Android -sdk-windows\tools\lib\find_java.bat  .

Enable cmd.exe, switch the command line path to android-sdk-windows\tools\lib, execute find_java.bat, and see the output: C:\Windows\system32\java.exe

Although java.exe exists in this path, this is not the installation path of jre. It is estimated that when some software that requires java is installed, java.exe, javaw.exe, javaws.exe are copied to c:\windows\system32, which causes SDK Manager.exe to call java.exe in the wrong location. .

It can be solved by deleting java.exe, javaw.exe, javaws.exe under C:\Windows\system32\.

(6) According to the following method, it still fails, and it still cannot be opened

Just copy java.exe to Windows\SysWoW64
(7) The following method still fails, but it still cannot be opened

The installation path of sdk cannot have Chinese, and the installed folder cannot have spaces

(8) Do you need to reinstall the SDK? This is indeed possible. Be careful not to uninstall the SDK and then reinstall it. It will be miserable. There can be several G things in the SDK download. If you reinstall it, you need to download it again. I downloaded the android SDKinstaller_r24. 4.1-windows.exe directly overwrites the installation, and the result is just fine.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325278650&siteId=291194637