错误:未设置ANDROID_HOME,并且"android"命令不在您的PATH中.您必须至少满足以下条件之一. [英] Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

查看:92
本文介绍了错误:未设置ANDROID_HOME,并且"android"命令不在您的PATH中.您必须至少满足以下条件之一.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装PhoneGap,但出现以下错误:

I'm trying to install PhoneGap and I'm getting the following error:

错误:未设置ANDROID_HOME,并且PATH中未包含"android"命令.您必须至少满足以下条件之一.

Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

错误(屏幕截图)

我该怎么做才能确保正确设置Android以与Cordova一起使用?

What do I do to ensure Android is set up correctly for use with Cordova?

推荐答案

对于Windows:

设置ANDROID_HOME = C:\ 安装位置 \ android-sdk

set ANDROID_HOME=C:\ installation location \android-sdk

set PATH =%PATH%;%ANDROID_HOME%\ tools;%ANDROID_HOME%\ platform-tools

set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

摘自此安装指南.

这篇关于错误:未设置ANDROID_HOME,并且"android"命令不在您的PATH中.您必须至少满足以下条件之一.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆