簡體   English   中英

繼續獲取:無法安裝'cordova-plugin-whitelist':錯誤:cmd:命令失敗,退出代碼為1

[英]Keep getting: Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1

我是新手,我只想做本教程中的內容:

在Windows 7,8和10上安裝Cordova和Android SDK以開發移動應用程序

在7:36它顯示我必須輸入: cordova platform add android

我做到了,但我得到了這個:

Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1
    at ChildProcess.whenDone (G:\Cordovatest\hello\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:829:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Error: cmd: Command failed with exit code 1

希望得到一些幫助 -

請執行以下操作:

1)添加環境變量ANDROID_HOMEJAVA_HOME (給出文件夾Android SDK的路徑和值中的JDK之一)。

2)在System Variable PATH中添加pathplatform-tools的的一個Tools文件夾。

它將成功修復您的錯誤。

Case Ionic Solution插件無法使用whitelisterror

  1. 調用java_home可執行文件的位置,即java.exe然后重新編譯

原因:當時環境變量沒有加載失敗的窗口,因為如果他們很好地聲明,謝謝

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM