Android App Test article
Configuring the JDK Environment
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Install Jdk-8u5-windows-x64.exe,
Configuring Environment variables
Java_home = C:\Program files\java\jdk1.8.0_05
Path + =%java_home%\bin;%java_home%\jre\bin;
CLASSPATH + =%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Configuring the ANDROID-SDK Environment
Http://developer.android.com/design/downloads/index.html
Unzip Android-sdk.rar to D:\Android\
Configuring Environment variables
Asdk_home = D:\Android\sdk
Path + =%asdk_home%\platform-tools;%asdk_home%\tools;
Configuring the Apache-ant Environment
http://ant.apache.org/bindownload.cgi
Unzip the Apache-ant-1.9.4.rar,
Configuring Environment variables
Ant_home = C:\Program files\apache-ant-1.9.4
Path + =%ant_home%\bin;
Configuring the GIT Environment
http://msysgit.github.io/
Installing Git-1.9.4-preview20140611.exe
Configuring Environment variables
Git_home = C:\Program Files (x86) \git
Path + =%git_home%\bin;
Configuring the Node Environment
http://nodejs.org/download/
Installing Node-v0.10.29-x64.msi
Configuring Environment variables
Node_home = C:\Program files\nodejs\
Path + =%node_home%;
Configuring the PHONEGAP Environment
http://phonegap.com/install/
Running NPM install-g phonegap in cmd (online installation)
Or unzip the Phonegap.rar to C:\Users\iceStone\AppData\Roaming\npm\node_modules.
Older versions of the above can be changed to a new version
Note that phonegap this really needs to be installed on the latest Nodejs before the normal installation.
Problem point: Android SDK Manager cannot download update list
Workaround:
1. Launch Android SDK Manager, open the main interface, select "tools", "options...", pop up the "Android SDK manager-settings" window;
2. In the "Android SDK manager-settings" window, fill in port"and 80 in the"http proxy server"and"http proxy mirrors.neusoft.edu.cn input boxes,
and select "force https://... sources to be fetched using http://..." check box. Click the "close" button to close the "Android SDK manager-settings" after Setup is complete
The window returns to the main interface;
3. Select "packages", "reload".
PhoneGap How to use:
In the location where you want to put the item (inside the folder), press and hold shift+ right-click in the Space and select: Open the Command Window here,
Create Project: PhoneGap create MyApp com. Name of the project name app
Altogether three parameters, MyApp is the project file name. com. domain name. Project name for your own, the app name for your own, note this can only be used in English
The app wants to use Chinese name in subsequent changes
Then enter: CD MyApp, enter the current project folder and enter PhoneGap build to create the project
A little learning to develop mobile phone mixed mode app-environment building