2017-04-17 147 views
1

我對科爾多瓦的初學者,我跟着提到的所有步驟創建第一個科爾多瓦應用文件科爾多瓦構建Android失敗,退出代碼ENOENT

我能夠滿足在窗戶上所有的Android要求機 cordova android requirements 但我不能夠運行科爾多瓦構建Android command.I我收到以下錯誤Cordova build

對於解決辦法,我還提到以下的鏈接,但我的問題沒有解決

cmd: Command failed with exit code ENOENT

+0

檢查此:http://stackoverflow.com/a/33280304/4188585 –

+0

請在您的PATH變量中添加C:\ Windows \ System32 –

+0

@Gaurab, 在參考上述鏈接後,我已將上述路徑添加到PATH變量仍然是我面臨同樣的問題。 –

回答

0

可以通過命令行來更新Android SDK中:

前往文件夾Android的SDK \工具\ BIN並運行命令:

列出已安裝的和可用的軟件包

sdkmanager --list 

個安裝軟件包

sdkmanager packages [options] 

例如,爲了獲得亞行和FASTBOOT,安裝最新的平臺工具:

sdkmanager "platforms;android-25" 

用法:

sdkmanager --update [<common args>] 
    sdkmanager --list [<common args>] 
    sdkmanager [--uninstall] [<common args>] \ 
    [--package_file <package-file>] [<packages>...] 

In its first form, installs, or uninstalls, or updates packages. 
    <package> is a sdk-style path (e.g. "build-tools;23.0.0" or 
      "platforms;android-23"). 
    <package-file> is a text file where each line is a sdk-style path 
        of a package to install or uninstall. 
    Multiple --package_file arguments may be specified in combination 
    with explicit paths. 
In its second form (with --update), currently installed packages are 
    updated to the latest version. 
In its third form, all installed and available packages are printed out. 

參考:https://developer.android.com/studio/command-line/sdkmanager.html

+0

非常感謝...它的工作 –

相關問題