如何设置Cordova? [英] How do I setup Cordova?

查看:154
本文介绍了如何设置Cordova?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中开始使用第一个Cordova应用程式时遇到一些问题。

I am having some problems with getting started with my first Cordova app in Visual Studio.

当我建立新的Cordova专案时,

When I create a new Cordova Project, I am presented with a page that says:


它列出了需要安装的3件事:

And it lists 3 things that need to be installed:


  • Android SDK系统中缺少该软件。您可能还需要在安装后进行配置。说明

  • Apache Ant您的系统中缺少该软件。您可能还需要在安装后进行配置。说明

  • Git CLI您的系统中缺少该软件。您可能还需要在安装后进行配置。说明

  • Android SDK The software is missing from your system. You may also have to configure it after installation. Instructions
  • Apache Ant The software is missing from your system. You may also have to configure it after installation. Instructions
  • Git CLI The software is missing from your system. You may also have to configure it after installation. Instructions


  1. 我已安装Android SDK。那么如何让Visual Studio知道它在哪里呢?

  1. I already have the Android SDK installed. So how can I let Visual Studio know where it is? A search for this on Google did not yield any results that were related.

搜索Git CLI没有产生任何结果。

Searching for Git CLI did not yield any results. How do I install this?

我还没有尝试安装Apache Ant,因为我无法超越其他两个。

I haven't even tried installing Apache Ant yet because I can't get past the other two.


如何安装Git CLI,如何让VS知道我的Android SDK位于?

How can I install Git CLI and how do I let VS know where my Android SDK is located?

PS我知道每个列表项目都有一个说明链接,但是,我无法访问这些页面,他们说网页不可访问在Chrome,Firefox和IE(和Spartan)。

P.S. I am aware that each of those list items has an 'instructions' link, however, I am unable to access those pages, they say "Webpage is not accessible" in Chrome, Firefox and IE (and Spartan).

推荐答案

我想你已经为Apache Cordova安装了工具。

I guess you have already installed Tools for Apache Cordova.

并且您无法使用该工具安装它们,请在其官方网站中手动下载。然后,您可以在这些项目中添加路径:

Once you did that and you can't install them with the tool, download them manually in their official websites. You can then add the path for these items in :

Tools > Options > Tools for Apache Cordova > Environment Variables

这是我的一个屏幕:

它有助于

这篇关于如何设置Cordova?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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