在打开android sdk mangage.exe的时候,一闪而过,在eclipse中出现如下提示:
[2015-07-20 13:42:23 - SDK Manager] [SDK Manager] This version of F:\Andriod\SDK\tools\lib\find_java64.exe is not compatible with the version of Windows you‘re running. Check your computer‘s system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
解决办法:
1、编辑打开\sdk\tools下的Android.bat文件
2、找到:
我的默认是这样的:
rem Check we have a valid Java.exe in the path. set java_exe= call lib\find_java.bat if not defined java_exe goto :EOF
改成:
rem Check we have a valid Java.exe in the path. set java_exe=D:\Program Files\Java\jdk1.8.0_25\bin\java.exe rem call lib\find_java.bat if not defined java_exe goto :EOF
##这是jdk中java.exe的安装路径D:\Program Files\Java\jdk1.8.0_25\bin\java.exe
3、将 call lib\find_java.bat这行,改成 rem call lib\find_java.bat
4、保存关闭Android.bat文件,重新打开Android SDK Manager即可。
时间: 2024-10-16 07:49:50