當我在vscode終端提示ionic cordova build android時,過了一會兒,它給了我:
檢查Java JDK 和 Android SDK版本
ANDROID_SDK_ROOT=undefined (推薦設定)
ANDROID_HOME=未定義(已洗掉)
未能找到'ANDROID_SDK_ROOT' 環境變數。嘗試手動設定它。
未能找到'android' 命令在你的'PATH'。嘗試更新你的'PATH' 到包括路徑到有效的SDK目錄。
[ERROR] 一個錯誤發生同時運行子行程cordova。
cordova.cmd build android退出 with exit 代碼 1。
重新運行這個命令用--verbose標志可能會提供更多資訊。
資訊。
[VSCode終端的影像][1]
我檢查了我的路徑,我想它是好的。
[環境變數的圖片][2]
我能否得到一些幫助?
我能得到一些幫助嗎?
我想在我的手機上測驗我的應用程式。我已經讓我的手機在Xamarin上運行了。
編輯(添加verbose):
檢查Java JDK andAndroid SDK版本
ANDROID_SDK_ROOT=undefined (推薦設定)
ANDROID_HOME=未定義(已洗掉)
未能找到'ANDROID_SDK_ROOT'環境變數。嘗試手動設定它。
未能在你的'android'命令中找到'PATH'。嘗試更新您的'PATH'以include路徑到有效的SDK目錄。
CordovaError。未能找到'ANDROID_SDK_ROOT'環境變數。嘗試手動設定它。
未能在你的'android'命令中找到'PATH'。嘗試更新你的'PATH'到include路徑到有效的SDK目錄。
在C:UsersCGarciaDocumentsWorkersAppIONICionic-form-uiplatformsandroidcordovalibcheck_reqs.js:260:19
at processTicksAndRejections (international/process/task_queues.js:93:5)
at async Promise.all (index 1)
[ERROR] 一個錯誤發生了同時運行子行程cordova.cmd的情況。
cordova.cmd build android --verbose以exit代碼1退出了。
用--verbose標志重新運行此命令可能會提供更多資訊。
ionic:utils-process onBeforeExit handler: 'process.exit'收到 0ms
ionic:utils-process onBeforeExit handler: running 2 functions 1ms
ionic:utils-process error while killing process tree for 6708: Error。命令失敗: taskkill /pid 6708 /T /F
ionic:utils-process ERROR: no se encontr? el proceso "6708"/span>.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:308:12)
ionic:utils-process at ChildProcess.emmit (events.js:315:20)
ionic:utils-process at maybeClose (internal/child_process.js:1048: 16)
ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null。
ionic:utils-process cmd: 'taskkill /pid 6708 /T /F'
ionic:utils-process } 119ms
ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 6708 /T /F 。
ionic:utils-process ERROR: no se encontr? el proceso "6708".
ionic:utils-process。
ionic:utils-process at ChildProcess. exithandler (child_process.js:308:12)
ionic:utils-process at ChildProcess. emit (events.js:315:20)
ionic。 utils-process at maybeClose (internal/child_process. js:1048:16)
ionic:utils-process at Process. ChildProcess。 _handle.onexit(internal/child_process.js:288:5)。{
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null。
ionic:utils-process cmd: 'taskkill /pid 6708 /T /F'
ionic:utils-process } 3ms
ionic:utils-process error while killing process tree for 8984: Error。命令失敗: taskkill /pid 8984 /T /F
ionic:utils-process ERROR: no se encontr? el proceso "8984"/span>.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:308:12)
ionic:utils-process at ChildProcess.emit (events.js:315:20)
ionic:utils-process at maybeClose (internal/child_process.js:1048: 16)
ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null。
ionic:utils-process cmd: 'taskkill /pid 8984 /T /F'
ionic:utils-process } 7ms
ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 8984 /T /F
ionic:utils-process ERROR: no se encontr? el proceso "8984".
ionic:utils-process。
ionic:utils-process at ChildProcess. exithandler (child_process.js:308:12)
ionic:utils-process at ChildProcess. emit (events.js:315:20)
ionic。 utils-process at maybeClose (internal/child_process. js:1048:16)
ionic:utils-process at Process. ChildProcess。 _handle.onexit(internal/child_process.js:288:5)。{
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null。
ionic:utils-process cmd: 'taskkill /pid 8984 /T /F'
ionic:utils-process } 3ms
ionic:utils-process processExit: 退出(exit代碼。1) 3ms
編輯。 現在的錯誤是不同的。(直接用verbose)
檢查Java JDK 和Android SDK版本
ANDROID_SDK_ROOT=C:Program Files (x86)Androidandroid-sdk ools(推薦設定)。
ANDROID_HOME=C:Program Files (x86)Androidandroid-sdk ools (DEPRECATED)
使用Android SDK。C:Program Files (x86)Androidandroid-sdk ools
找不到已安裝的Gradle版本,或者在Android Studio。
或者 在你的系統安裝gradle包裝器。請包括gradle
在你的路徑中,或安裝Android Studio
CordovaError: Could not find an installed version of Gradle either in Android Studio,
或者 在你的系統安裝gradle包裝器。請包括gradle
在你的路徑中,或安裝Android Studio
在Object.module.exports。 check_gradle (C:UsersCGarciaDocumentsWorkersAppIONICionic-form-uiplatformsandroidcordovalibcheck_reqs.js:131:27)
at ProjectBuilder.prepEnv (C:UsersCGarciaDocumentsWorkersAppIONICionic-form-uiplatformsandroidcordovalibuildersProjectBuilder.js:262:27)
at Api.module.exports.run (C:UsersCGarciaDocumentsWorkersAppIONIC-form-uiplatformsandroidcordovalibuild.js:168:20)
在C:UsersCGarciaDocumentsWorkersAppIONICionic-form-uiplatformsandroidcordovaApi.js:253:47。
at processTicksAndRejections (internal/process/task_queues.js:93: 5)
我在這臺電腦上安裝了Android Studio,但從未在這個用戶上執行過。我應該打開它嗎? [1]: https://i.stack.imgur.com/BO5wx.png。 [2]: https://i.stack.imgur.com/qQ4VE.png
uj5u.com熱心網友回復:
我遵循Akshaya Jeevan的提示和檔案
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/312035.html
標籤:
上一篇:沒有找到插件'Device',或者不是CDVPlugin。檢查你在config.xml中的插件映射。
下一篇:用句號陳述句結束程式
