Development Environment for android applications using ionic framework in Win10, win10ionic

Source: Internet
Author: User

Development Environment for android applications using ionic framework in Win10, win10ionic

Reprinted please indicate the source:Http://www.cnblogs.com/titibili/p/5102035.html

Thank you ~

1. Download JDK and configure the Java Runtime Environment

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

After installation, perform the following configurations:

In "system variables", set three attributes: JAVA_HOME, PATH, and CLASSPATH (Case Insensitive). If the attributes already exist, click "edit". If the attributes do not exist, click "new ".

1) JAVA_HOME

C: \ Program Files \ Java \ jdk1.8.0 _ 45

Note: JAVA_HOME indicates the JDK installation path, which is the path selected during installation. This path contains the lib, bin, jre, and other folders.

2) Path

% JAVA_HOME % \ bin;

Add at the beginning of the Path value of the system variable. Otherwise, the system may choose to deploy the preceding jre environment at runtime.
Note: Path allows the system to recognize java commands in any Path

3) CLASSPATH

.; % JAVA_HOME % \ lib \ tools. jar

Note: Click it to indicate the current directory, which cannot be omitted.

CLASSPATH is the class or lib path for java loading. Only the class in classpath can be identified by java commands.

Test: "Start"-> "run", type "cmd", and type the command "java-version". If the screen is displayed, the environment variable is successfully configured.

2. Download Apache Ant and add its bin directory Path to the Path

Http://mirror.tcpdiag.net/apache/ant/binaries/

Decompress the downloaded Files. If the Files are stored in the C drive's Program Files directory, add the following C: \ Program Files \ apache-ant-1.9.4 \ bin to the Path;

And add the path environment variable (the addition method is the same as the path variable configured in java. Note that the value of each environment variable is separated)

3. Download Android Studio

Http://rj.baidu.com/soft/detail/27390.html? Ald

1) because downloading Android SDK is not easy, you need to configure a proxy or FQ;

2) There will be various errors or prompts for sdk updates and other messy issues during use,

Therefore, we recommend that you download Android Studio (Baidu Software Center download speed is good). After the download, you will be prompted to select the SDK installation path, which we mainly use.

After installation, add two values to the system Path environment variable. The path of the tools directory in the Android SDK and the path of platform-tools. For example:

Test:

4. Download and install NodeJs

Https://nodejs.org/download/

5. Install Ionic and Cordova

Http://ionicframework.com/getting-started/

Run "CMD" and type "npm install-g cordova ionic". The installation time varies depending on the network environment.

After installation, you can create an Ionic project "ionic start myApp tabs"

Go to the myApp project "cd myApp"

Run "ionic serve" in the browser"

Add the Installation platform "ionic platform add android"

Compile to apk "ionic build android"

Debug ionic run directly on your phone"

Related Article

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.