Configure the Visual Studio Tools for Apache Cordova

来源:互联网 发布:禁止某一程序访问网络 编辑:程序博客网 时间:2024/06/08 03:31

http://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/

1.Nodejs

https://nodejs.org/en/
推荐使用x86的Node

We recommend installing the x86 version of Node.js. Before installing this software, read about safely installing Node.js.

还推荐使用0.x版本的Node
http://taco.visualstudio.com/en-us/docs/change-node-version/
测试 CMD
node -v

2.chrome

https://www.google.com/chrome/browser/desktop/index.html
运行Ripple模拟器所必需

3.git

https://git-scm.com/download/
这越高越好 没有关系

Caution: Git command line tools 1.9.5 are installed by default. Unexpected failures may occur if you install a version prior to 1.9.0.

测试CMD
git –version

4.Apache Ant
http://ant.apache.org/bindownload.cgi
推荐下载tar.gz的包 zip貌似下不了?
解压好后把路径放在
C:\Program Files\apache-ant-1.9.7

5.32-bit Oracle Java 7
32位JDK7
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

6.Android SDK
如果正确默认路径安装Android Studio并且能用Android Studio编译出APP
则在
C:\Users\YY\AppData\Local\Android\sdk
存在
SDK Manager.exe
运行
勾选

  • Android SDK Tools (latest version)
  • Android SDK Platform-tools (latest version)
  • Android SDK Build-tools (19.1, 19.0.3, and 21)
    然而,目前的版本找不到19.0.3 = = 作为替代,把20勾上了
  • Android 5.0 (API level 21) with the following packages:
    也没有看到5.0 而是5.0.1 不过API level都是21
    如果想要用虚拟机,把下面的平台也勾上,不过还是推荐真机调试

勾选好了就 install packages
这个貌似不用翻墙,比较良心
当出现
Done loading packages,就装好了

7.Override system environment variables

ADT_HOME points to the Android installation path.
ANT_HOME points to the Ant folder on your computer.
GIT_HOME points to the Git installation path.
JAVA_HOME points to the Java installation path.

0 0