跨平台移动开发phonegap/cordova 3.3全系列教程-开发环境搭建
2014-07-27 00:35
796 查看
http://blog.csdn.net/mansai/article/details/18950109
打开如下网站下载JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html
根据操作系统选择下载,下载后安装。
打开网站下载
http://ant.apache.org/bindownload.cgi
下载完成后,解压到E:\
下载ADT
http://developer.android.com/sdk/index.html
下载完成后,解压到E:\
打开网站下载http://nodejs.org/
下载后安装
ANT_HOME与JAVA_HOME必须建立,如图
编辑系统Path,如图
加入E:\apache-ant-1.9.3\bin;C:\ProgramFiles\Java\jdk1.7.0_45\
bin;E:\adt-bundle-windows-x86-20131030\sdk\platform-tools;
保存后重新启动计算机
PS:按照上文进行安装时,出现错误:Error: An error occurred while listing Android targets。后来发现少加了一个android/sdk/tools的路径。
http://stackoverflow.com/questions/20323787/cordova-platform-add-android-not-working-while-listing-android-targets
To work, this cordova command needs to use some programs located into your
You need also have installed apache ant.
Then you must add these directories into your
variable:
Background:
let's assume you have installed your Android
SDK to the
you have installed you Apache ant to the
Then you must create two system variables:
the
the
Finally, you must modify the
and add those two to the end of the
value:
NOTE: for those who uses Linux, the instruction differs a bit.
More documentation available here.
操作系统:windwos xp
1. 安装JDK
打开如下网站下载JDKhttp://www.oracle.com/technetwork/java/javase/downloads/index.html
根据操作系统选择下载,下载后安装。
2. 安装apache-ant
打开网站下载http://ant.apache.org/bindownload.cgi
下载完成后,解压到E:\
3.安装ADT
下载ADThttp://developer.android.com/sdk/index.html
下载完成后,解压到E:\
4.打开eclipse.exe,安装SDK
5.安装模拟器
6.安装Node.js
打开网站下载http://nodejs.org/下载后安装
7.配置环境变量(非常重要)
ANT_HOME与JAVA_HOME必须建立,如图编辑系统Path,如图
加入E:\apache-ant-1.9.3\bin;C:\ProgramFiles\Java\jdk1.7.0_45\
bin;E:\adt-bundle-windows-x86-20131030\sdk\platform-tools;
保存后重新启动计算机
8. 安装cordova/phonegap
PS:按照上文进行安装时,出现错误:Error: An error occurred while listing Android targets。后来发现少加了一个android/sdk/tools的路径。
http://stackoverflow.com/questions/20323787/cordova-platform-add-android-not-working-while-listing-android-targets
To work, this cordova command needs to use some programs located into your
sdk/toolsdirectory.
You need also have installed apache ant.
Then you must add these directories into your
PATHsystem
variable:
Background:
let's assume you have installed your Android
SDK to the
c:\sdk\androiddirectory
you have installed you Apache ant to the
c:\tools\apache-antdirectory
Then you must create two system variables:
ANDROID_HOMEwith
the
c:\sdk\androidvalue
ANT_HOMEwith
the
c:\tools\apache-antvalue
Finally, you must modify the
PATHvariable
and add those two to the end of the
PATH'
value:
;%PATH%\tools;%ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
NOTE: for those who uses Linux, the instruction differs a bit.
More documentation available here.
相关文章推荐
- 跨平台移动开发phonegap/cordova 3.3全系列教程-开发环境搭建
- 跨平台移动开发phonegap/cordova 3.3全系列教程-目录
- 跨平台移动开发phonegap/cordova 3.3全系列教程-helloworld
- 跨平台移动开发phonegap/cordova 3.3全系列教程-图片上传
- 跨平台移动开发phonegap/cordova 3.3全系列教程-调用webservice/ajax
- 跨平台移动开发phonegap/cordova 3.3全系列教程-app启动画面
- 跨平台移动开发phonegap/cordova 3.3全系列教程-helloworld
- 跨平台移动开发phonegap/cordova 3.3全系列教程-百度云推送push
- 跨平台移动开发phonegap/cordova 3.3全系列教程-百度云推送push
- 添加插件--跨平台移动开发phonegap/cordova 3.3全系列教程-helloworld
- 跨平台移动开发phonegap/cordova 4 ios 开发环境搭建
- phonegap(cordova) 3.5教程-开发环境搭建
- 跨平台移动开发phonegap/cordova 3.3全系列教程-开发环境搭建
- Android移动APP开发笔记——最新版Cordova 5.3.1(PhoneGap)搭建开发环境
- 跨平台移动开发phonegap/cordova 3.3全系列教程-app启动画面
- cordova 移动跨平台开发(一) ---- 环境搭建
- 百度云推送push-- 跨平台移动开发phonegap/cordova 3.3全系列教程
- Android移动APP开发笔记——最新版Cordova 5.3.1(PhoneGap)搭建开发环境
- 在MAC中搭建Apache Cordova + Sencha Touch2的开发环境——1安装Apache Cordova 3.3
- 关于DreamWeaver CS6.0 + PhoneGap 之移动开发环境搭建