"未找到Android SDK.请确保已装置.如果不在默认地位,请设置ANDROID_HOME环境变量."(Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable)

在通过终端构建 Cordova 我的项目时遇到这个问题,如果我通过 Android Studio 运行一切正常。

该问题解决方案记录

解决方案参考:

1> Cordova命令行编译报错:未找到 Android SDK.确保它已装置.如果不在默认地位,请设置 ANDROID_HOME 环境变量

2> cordova 编译我的项目报 Android SDK not found