1. Download the JDK and install http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
Configure environment variable i) java_home value C:\Program files\java\jdk1.8.0_65
II) The value of the classpath.; %java_home%\lib;%java_home%\lib\tools.jar
III) path adds value%java_home%\bin;%java_home%\jre\bin;
2. Download ADT
Http://yun.baidu.com/s/1hqxPoDe#path=%252FAdt%2520%25E6%2589%2580%25E6%259C%2589%25E8%25BD%25AF%25E4%25BB%25B6 %2520%25e7%2594%25a8%25e4%25ba%258eandroid%25e5%25bc%2580%25e5%258f%2591
Configuring Environment variables
i) value of Android_home d:\adt-bundle-windows-x86_64-20140702\sdk\tools;d:\adt-bundle-windows-x86_64-20140702\sdk\ Platform-tools;d:\adt-bundle-windows-x86_64-20140702\eclipse\plugins\org.apache.ant_1.8.3.v201301120609\bin
ii) path add value%android_home%
3, install node. js, detailed installation configuration steps See http://www.cnblogs.com/EricaMIN1987_IT/p/3555849.html
4. Download Update Android SDK
Build may report an error similar to "Please download the latest SDK".
http://mirrors.neusoft.edu.cn/android/repository/, I downloaded Android-22_r02.zip, then create a new folder Android-22 (corresponding version), and then extract to the folder.
5. Configure Android Simulator
When creating the AVD, if the Cpu/abi option is not selectable and the "No system images installed for this target" is displayed, that is, there is no suitable systems image to install via SDM Manager (requires Fanqiang) , or http://mirrors.neusoft.edu.cn/android/repository/(domestic).
Then create a new System-images folder in the SDK directory and download the package to the new Android-22 folder.
6. Install PhoneGap and create demo project
NPM install-g Cordova
Cordova Create Hello Com.example.hello "HelloWorld"
CD Hello
Cordova Platform Add Android
Cordova Build
Cordova run Android Runtime emulator
7. Install Ionic and create demo project
NPM install-g Ionic
Ionic start MyProject
CD MyProject
Ionic Platform Add Android
Ionic Build Android
Ionic emulate Android (emulator run)
Ionic run Android (connected to the phone)
8. The following debugging methods are suitable for iOS and Android
Ionic Serve for browser debugging
Cordova Serve
Possible problems and solutions:
1, using the command line build may be error, you can open the project with eclipse to compile, can be successful.
2. Run the Android simulator through Eclipse and touch waiting for HOME (' Android.process.acore ') to be launched ... In the case of not moving, try to say a lot of ways on the internet can not, my solution is http://mirrors.neusoft.edu.cn/android/repository/, download the latest tools (Tools_ R24.4.1-windows.zip), directly unzip the original Sdk/tools and then rerun the project, the Android emulator runs successfully.
PhoneGap Android Development Environment Building