0. Configure Android studio from a zero installation and write the first Android APP

Source: Internet
Author: User

0. Required installation files

I do a few years WP, recently a little interest in Android, try Android development, nonsense not to say, directly into the theme, first installed development environment, the author's system environment for windows8.1&x64.

Installation of Android Studio requires 2 files to be prepared as follows:

    1. Android Studio: (Https://dl.google.com/dl/android/studio/install/1.2.2.0/android-studio-bundle-141.1980579-windows.exe)
    2. Jdk7: (Http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-windows-x64.exe)
1. Install the JDK7 and configure the Java-home

As we all know that the development language required for Android development is Java, the first step is to install the JDK first.

Installation steps are relatively simple, all the way next down, here is not the map.

After installation, you need to configure the system environment variable Java_home ( Note that the system variable is not a user variable ). As follows:

2. Install Android Studio

Installation step is simple, go down all the way, here is not the map ( note the end of the last step do not start Android Studio), change the following configuration file before starting.

    1. Idea.properties file (file is located in the bin directory of Android Studio Android directory, the author's path is "C:\Program files\android\android studio\bin\")
      Add a line at the end of the file (used to block the Android studio startup when it stops at fetching Android SDK Compoment information issue):
      Disable.android.first.run=true

    2. Studio.exe.vmoptions and Studio64.exe.vmoptions file files (files are located in the bin directory of the Android studio Android directory, the author's path is "C:\Program files\ Android\android studio\bin\ ")
      adds three lines to the end of the file (for andriod Studio updates):
      -djava.net.preferipv4stack=true
      -didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
      -didea.patches.url=http://dl.google.com/android/studio/patches/

Then launch Android Studio.

3. Create your first app project-FirstAndroidApp3.1 The process of creating a project is mapped as follows

3.2 Setting text content and font size

3.3 Setting up the phone to open developer debug

Then connect your phone to your computer via USB and then start adb debug in developer modeon your phone.

3.4 Department to mobile phone

Click the Launch button to deploy to your phone, such as:

3.5 Real-Computer operation interface is as follows

3.6 Call it Off!

0. Configure Android studio from a zero installation and write the first Android APP

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.