(Senchatouch + phonegap) Development notes (2) Development Environment build 2

Source: Internet
Author: User
Tags chrome developer chrome developer tools

I. Java environment and Android SDK   1. After JDK and jrejre are installed, the installation interface is automatically displayed. After installation, set the environment variable java_home D: \ Program Files \ Java \ jdk1.7.0 _ 45 (JDK paths of different versions may be different) classpath .; % java_home % \ Lib (note .) PATH % java_home % \ bin 2. Install Android SDK
The downloaded Android SDK is a compressed package named adt-bundle-windows-x86-20140702.zip. The package contains eclipse, SDK, and SDK manager.exe. decompress it, for example, decompress it to D: \ Program Files \ Android SDK to open SDK manager.exe, and select, by default, API 20 is installed with the SDK provided by the connection. Here I select API 19 to install D: \ Program Files \ Android SDK \ tools and D: \ Program Files \ Android SDK \ platform-tools add to System Path Environment Variable 3. Add the ant path to Path Environment Variable D: \ Program Files \ Android SDK \ eclipse \ plugins \ org. apache. ant_1.8.3.v201301120609 \ bin Ii. phonegap   1. Install nodejs first
To install phonegap, you need to use the NPM module management tool in nodejs. 2. Install phonegap. Open CMD and run: NPM install-G phonegap. If you want to uninstall phonegap, run: NPM uninstall-G phonegap.
If you want to update, run NPM Update-G phonegap.
If you want to install a specific version, run: NPM install-G [email protected] version number, such as NPM install-G [email protected] 3. Install the GitHub tool when developing webapp with sencha touch, you may need to use native APIs of mobile phones, such as cameras and gyroscope. phonegap provides support for calling native APIs, but you need to manually add the phonegap plug-in for the project, these plug-ins need to be downloaded using GitHub     Iii. debugging 1. For systems earlier than Android 4.4 or other systems (such as IOS and WP8) debugging on the PC end, we can use Chrome Developer Tools to conveniently debug websites or web applications. However, these tools are useless when we want to debug websites or applications on mobile devices. Therefore, mobile developers all hope to have chrome Developer Tools of the mobile version. Weinre is such a tool that can help us debug mobile websites and phonegap applications. Run cmd to install weinre and run NPM-G install weinre. If you want to uninstall weinre, run NPM uninstall-G phonegap.

(senchatouch + phonegap) Development notes (2) Development Environment build 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.