2013-01-21 28 views
0

這是錯誤/ s的即時得到:我無法通過Eclipse IM運行Android SDK管理器控制檯窗口中收到錯誤

[2013-01-21 21:24:14 - SDK Manager] [SDK Manager] 'lib\find_java.bat' is not recognized as an internal or external command, 
[2013-01-21 21:24:14 - SDK Manager] [SDK Manager] operable program or batch file. 

現在,我嘗試更新計算機的Path變量設置,所以它看起來像:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\bout0_000\android-sdks\platform-tools;C:\Program Files\Java\jdk1.7.0_11\bin 

我剛纔裝再次JDK

而且還是在Android SDK管理器的圖標點擊儘管Eclipse的即時得到日當是錯誤的。

這是find_java.bat文件的內容:

@echo off 
rem Copyright (C) 2007 The Android Open Source Project 
rem 
rem Licensed under the Apache License, Version 2.0 (the "License"); 
rem you may not use this file except in compliance with the License. 
rem You may obtain a copy of the License at 
rem 
rem  http://www.apache.org/licenses/LICENSE-2.0 
rem 
rem Unless required by applicable law or agreed to in writing, software 
rem distributed under the License is distributed on an "AS IS" BASIS, 
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
rem See the License for the specific language governing permissions and 
rem limitations under the License. 

rem This script is called by the other batch files to find a suitable `Java.exe` 
rem to use. The script changes the "`java_exe`" env variable. The variable 
rem is left unset if Java.exe was not found. 

rem Useful links: 
rem Command-line reference: 
rem http://technet.microsoft.com/en-us/library/bb490890.aspx 

rem Check we have a valid Java.exe in the path. The return code will 
rem be 0 if the command worked or 1 if the exec failed (program not found). 
for /f %%a in ('%~dps0\find_java.exe -s') do set java_exe=%%a 
if not defined java_exe goto :CheckFailed 

:SearchJavaW 
rem Check if we can find a javaw.exe at the same location than java.exe. 
rem If that doesn't work, just fall back on the java.exe we just found. 
for /f %%a in ('%~dps0\find_java.exe -s -w') do set javaw_exe=%%a 
if not exist %javaw_exe% set javaw_exe=%java_exe% 
goto :EOF 


:CheckFailed 
echo. 
echo ERROR: No suitable Java found. In order to properly use the Android Developer 
echo Tools, you need a suitable version of Java JDK installed on your system. 
echo We recommend that you install the JDK version of JavaSE, available here: 
echo http://www.oracle.com/technetwork/java/javase/downloads 
echo. 
echo You can find the complete Android SDK requirements here: 
echo http://developer.android.com/sdk/requirements.html 
echo. 
goto :EOF 

這find_java.bat文件位於:

C:\Users\my user name\android-sdks\tools\lib 

還有什麼應該怎麼辦?我認爲這個問題是從使用Eclipse的時候開始的。

回答

1

你告訴的Eclipse在Android SDK中是通過: -

的Eclipse - >首選項。

單擊左側的Android部分,然後設置SDK位置。它應該閱讀: -

C:\用戶\我的用戶名\ Android的SDK的

感謝,

瑞安

+0

其實只注意到它的SDK管理器,你有一個問題有,嘗試回答這裏http://stackoverflow.com/questions/5199811/android-sdk-manager-wont-open – Ryan

+0

user1998138你的解決方案正在工作也許與我之前做的路徑變量的其他更改,但現在任何方式它的工作。謝謝。 –

相關問題