Cordova/phonegap Android Development Environment construction

Source: Internet
Author: User

This article is a personal original work, if there is not correct, please point out, and you understand, reproduced please indicate the source.

Preparation phase: Required:
    • JDK (Download the appropriate installation package according to your own development platform, may require FQ)

    • Nodejs (Download the appropriate installation package according to your own development platform, you may need to FQ)
    • Android SDK Manage (Download the appropriate installation package according to your own development platform, may need to FQ)

If there is no way to FQ students, you can go here to find out, you can also download links directly: Http://pan.baidu.com/s/1skXwktJ (2016.4.24)

Other:
    • Eclipse (Download the appropriate installation package based on your development platform, may require FQ)

Select this download channel:

    • Apache-ant

Configuration phase:Installing the JDK

1. Normal flow, next step ... Next, ok!

2. Environment variable configuration.

Right-click computer = "Properties =" Advanced system settings = "

= " java_home(new java_home, the variable value is configured as the location of the jdkx.x.xx folder )

= "path( add "%java_home%\bin "to the existing path, multiple directories separated by semicolons )

(Executing a DOS command, the system will look for the executable file for that command in the path specified by path )

= " Verify that the installation configuration is correct

After windows+r, enter cmd and return.

Enter the java-version after the return, the following screen appears to be successful!

InstallationAndroid SDK

1. Install the Android SDK Tool, customize the configuration installation address, next ... Next, ok!

2. Open the Android SDK Manager and choose to download the Android SDK according to your needs.

(After running the following screen, select the Android version you need, then click "Install X packages".) installed indicates that it is installed,not installed is not installed ! )

In the newly emerged interface, select the followingAccept or accept all, then click Install. Android SDK Manager starts to download and install your selected package, we wait for a while OK! Note: There may be no FQ can not download the situation, I tidy up the sharing link, there is a compression package, is my own now in the SDK package, unzip it to their corresponding folder. 3. Configure Environment VariablesAdd toAndroid_home (same as Add Java_home method ) Set upadd the tools and Platform-tools directories under the Android_home directory in path. Installing Nodejs

1. Installation, custom configuration installation address, next ... Next, ok!

2. Find the node. js command prompt or open cmd directly

3. Enter:node-v View the installation version , the output version is installed successfully

4. Installing Cordovainput: npm install-g Cordova Install the global Cordova Installing ... Installation is complete.5. Restart the interfacehere the environment has been built and you can create and compile the Cordova project directly on the command line. See hereHere are the students who are accustomed to using eclipse. Install Eclipse

Unzip Eclipse, when you double-click the eclipse icon , you are ready to start Eclipse and the eclipse is ready to install.

Note: It's a good idea to put the unpacking package on the JDK's sibling directory before installing it.

ADT Android Development Plugin Installation

The ADT (Android development tools) Android development tool, a development tool for Android in the Eclipse IDE environment, provides an upgrade or change to the development tools for Android development, and is simply understood as Upgrade Download tool for open tools under Eclipse. With the Android Developer website (developer.android.com), we know thatEclipse can install ADT plug-ins in two ways, online, offline (requires first download ADT Plugin Package, I have organized the sharing link also has ready-made ).

(Eclipse installs the ADT plugin offline)

1. Download the ADT plugin's zip file (do not unzip) 2. Start Eclipse, then select Help > Install New Software3 on the menu bar. Click the Add button in the upper-right corner of 4. In the Add Repository dialog box, click Archive "5. Select the downloaded adt-x.x.x.zip file and click" Confirm ". 6. Enter "ADT Plugin" in name and click "OK" 7. In the Software dialog box, select the Developer tools check box, and then click Next 8. In the next window, you will see a list of tools to download. Click "Next" 9. Read and accept the license agreement, and then click "Finish" 10. After the installation is complete, restart eclipse
Installation Configuration Apache-ant

1. Unzip ant you get a zip package, unzip it, and put it in a directory as simple as possible, such as D:\ant-1.9.6

2. Add Ant_home (same as Add Java_home method )

3. Set The bin directory in the path to add the Ant_home directory .

4. Test your settings, start-up and run -->cmd into command line--- type ant carriage return The configuration was successful.It is now possible to import projects in eclipse because I rarely use eclipse, so it is not specified. This article is a personal original work, if there is not correct, please point out, and you understand, reproduced please indicate the source.

Cordova/phonegap Android Development Environment construction

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.