2014-02-14 251 views
1

所以我從teamtreehouse下載了一個包,我試過安裝它,但是我遇到了一些問題。當我執行initial_setup,這是我所看到的:安裝eclipse時遇到了麻煩android

C:\android>REM Create a new AVD 

C:\android>echo "Creating a new AVD..." 
"Creating a new AVD..." 

C:\android>echo no | .\sdk\tools\android create avd -n Android44 -t 1 --force 

'"\java.exe"' is not recognized as an internal or external command, 
operable program or batch file. 
'xcopy' is not recognized as an internal or external command, 
operable program or batch file. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
ERROR: SWT folder '' does not exist. 
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo 
rm. 

C:\android>echo "AVD created." 
"AVD created." 

C:\android>pause 
Press any key to continue . . . 

我做了一些研究,主要是我看到的是改變路徑,我嘗試過,但它仍然給了我同樣的結果。

+0

爲什麼你沒有使用從Eclipse站點安裝的任何特定原因? – rrirower

+0

幫你一個忙,安裝Android Studio。 –

回答

0

「‘\ java.exe的’」不被識別爲一個內部或外部命令,

probaly您需要的Java路徑添加到環境變量。

這是非常有用摘自:Setting JAVA_HOME at Android SDK

  • 單擊開始,右鍵單擊計算機,選擇屬性(也可以按住Windows鍵,然後按下暫停/中斷鍵)。
  • 單擊左側的高級系統設置。
  • 單擊底部的環境變量按鈕。
  • 單擊系統變量窗口下方的新建...按鈕。 輸入以下命令:

    變量名:JAVA_HOME

    變量值:C:\jdk1.6.0_23\(*,其中Java是位於計算機的路徑)

  • 單擊確定,關閉在步驟打開系統控制面板1
+0

試過這個,得到了同樣的結果 – RadonD