小编has*_*sdn的帖子

在cmd构建android平台时出错

使用android构建离子项目时cmd出错

[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
    Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.]
    ERROR building one of the platforms: Error: cmd: Command failed with exit code 2
    You may not have the required environment or OS to build this project
    Error: cmd: Command failed with exit code 2
     at ChildProcess.whenDone (C:\Users\Hasan\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
     at ChildProcess.emit (events.js:110:17)
     at maybeClose (child_process.js:1015:16)
     at Process.ChildProcess.handle.onexit (childprocess.js:1087:5)
Run Code Online (Sandbox Code Playgroud)

那么问题是我该怎么做才能解决它?我在我的电脑上安装了android …

android cordova ionic

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

cordova ×1

ionic ×1