SDK manager does not find java

后端 未结 6 1078
死守一世寂寞
死守一世寂寞 2020-12-11 17:09

I can\'t fix the issue at hand and my head is continually becoming balder or balder.

The issue at hand is that my SDK manager won\'t find my Java, nor my SWT file.

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 17:25

    In case any of you still couldn't find solution. Do this. It worked for me. In your android SDK chagne tools/android.bat and tools/lib/find_java.bat as

    (find_java.bat)

    for /f "delims=" %%a in ('"%~dps0\find_java.exe" -s') do set java_exe=%%a into

    set java_exe=C:\PROGRA~1\Java\JDK17~1.0_4\bin\java.exe and

    for /f "delims=" %%a in ('"%~dps0\find_java.exe" -s -w') do set javaw_exe=%%a into

    set javaw_exe=C:\PROGRA~1\Java\JDK17~1.0_4\bin\javaw.exe

    (android.bat)

    for /f "delims=" %%a in ('"%java_exe%" -jar archquery.jar') do set swt_path=lib\%%a into

    set swt_path=lib\x86 (my system is 32 bit so i put x86 if your system is 64 then you should put \x86_64)

    hope it will work for you too.

提交回复
热议问题