解决方案: 添加环境变量 ANDROID_SDK_ROOT 变量值同 ANDROID_HOME 参考链接: https://blog.csdn.net/liwan09/article/details/106981563